Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
18
Task/RSA-code/Python/rsa-code-3.py
Normal file
18
Task/RSA-code/Python/rsa-code-3.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
>>>
|
||||
To redefine n,e, or d, type 'n','e',... etc.
|
||||
To encrypt a message with the current key, type 'Encrypt'
|
||||
To decrypt a message with the current key, type 'Decrypt'
|
||||
Type quit to exit
|
||||
|
||||
|
||||
|
||||
|
||||
Enter Command...ENCRYPT
|
||||
Enter Plaintext :drink MORE Ovaltine
|
||||
Ciphertext: [140, 2222, 1864, 1616, 821, 384, 2038, 2116, 2222, 205, 384, 2116, 45, 1, 2497, 793, 1864, 1616, 205, 41]
|
||||
Number of Ciphertext blocks: 20
|
||||
Enter Command...decrypt
|
||||
Enter ciphertext blocks:[140, 2222, 1864, 1616, 821, 384, 2038, 2116, 2222, 205, 384, 2116, 45, 1, 2497, 793, 1864, 1616, 205, 41]
|
||||
Plaintext is: drink more ovaltineu
|
||||
Enter Command...quit
|
||||
>>>
|
||||
Loading…
Add table
Add a link
Reference in a new issue