Implementation of Frequency Analysis Algorithms for Side-Channel Attacks