Research Article

A Novel Security Methodology for Smart Grids: A Case Study of Microcomputer-Based Encryption for PMU Devices

Algorithm 1

Random number generation algorithm pseudo-code
Input: parameters and initial condition of chaotic systems
Output: random numbers tested statistically
(1)Accepting system parameters and initial condition of the 5D Lorenz hyperchaotic system
(2)Determination of the value of
(3)Sampling with determination value for RK4
(4)WHILE (maximum 1 MBit data) DO
(5)Solving the 5D hyperchaotic system using RK4 algorithm
(6)Obtaining time series as float numbers (x, y, z, u, and )
(7)Convert float numbers to 32-bit least binary numbers
(8)Select LSB-8-bit least binary numbers from RNG from y and u phases
(9)Select LSB-16-bit least binary numbers from RNG from z and phases
(10)END WHILE
(11)Apply NIST-800-22 tests for each minimum 1 MBit data
(12)IF (test results==pass) THEN
(13)Successful results
(14)Ready tested random numbers for RNG applications
(15)ELSE
(16)Go to Step 4
(17)END IF
(18)EXIT