From charlesreid1

No edit summary
m (Bot: Orphan page, add template)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Orphan|date=April 2017}}
Notes on crypto stuff.
Notes on crypto stuff.


Line 13: Line 14:
# 'Uryyb Jbeyq!'
# 'Uryyb Jbeyq!'
</pre>
</pre>
[[Category:Teaching]]

Latest revision as of 02:39, 17 April 2017

Notes on crypto stuff.

PyOTP: https://labix.org/python-otp

ROT and other replacement ciphers:

import string 
rot13 = string.maketrans( 
    "ABCDEFGHIJKLMabcdefghijklmNOPQRSTUVWXYZnopqrstuvwxyz", 
    "NOPQRSTUVWXYZnopqrstuvwxyzABCDEFGHIJKLMabcdefghijklm")
string.translate("Hello World!", rot13)
# 'Uryyb Jbeyq!'