Total Pageviews

Search This Blog

Thursday, May 7, 2026

one time pad encryption example using alternating sin(x) and ln(x) as a random number generator

digits 1-9 = 00 to 09
alphabet = 10 to 35 
enigma style, no spaces, no punctuation
alternate ln and sin
2-digit random numbers added to each code group
use mod(10) addition 

attack at dawn

a t t a c k a t d a w n

plaintext
10 29 29 10 12 20 10 29 13 10 32 23

10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
a    b   c   d   e   f    g   h   i    j   k   l    m  n   o   p   q    r   s   t    u   v   w   x   y   z

ln(123) = 4.8121843554

81 21 84 35 54

sin(54) = 0.8090169944

80 90 16 99 44

ln(44) = 3.7841896339

78 41 89 63 39 

ciphertext
91 50 13 45 66 00 00 45 12 54 10 64 

use mod(10) subtraction to decrypt

No comments: