Research Article
A New Multistage Encryption Scheme Using Linear Feedback Register and Chaos-Based Quantum Map
Algorithm 1
Algorithm of Linear Feedback Shift Register.
| Input: key | | Output: pseudorandom numbers sequence | (1)while value! = 0 and value is not reiterating, | | Do | (2)Bin ⟵ attain the binary configuration of the Value. | (3)Pad until bin has 16 bits with leading zeros. | (4)XOR the bits at situations respective to LF function and save it in m. | (5)Bin ← shift the bin by one toward the right. | (6)Pad until bin has 16 bits with leading zeros. | (7)The first bit is replaced with m in the bin. | (8)Value ← attain the decimal value of the obtained binary configuration. | (9) | End |
|