diff options
author | Alan Yee <alyee@ucsd.edu> | 2016-08-01 11:34:51 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2016-12-05 20:05:39 -0800 |
commit | 6fda45896496610bdf21e99b935e0c575c9cdde0 (patch) | |
tree | 9f3384c68a35064dd7abc3fef352886f05dbde5d | |
parent | 865bd10d80231ae8457f54c7f98f48892732ecce (diff) |
Update demo_server.py
Updating base64 code in comments
-rw-r--r-- | demos/demo_server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/demo_server.py b/demos/demo_server.py index c4af9b10..4867e9ca 100644 --- a/demos/demo_server.py +++ b/demos/demo_server.py @@ -40,7 +40,7 @@ print('Read key: ' + u(hexlify(host_key.get_fingerprint()))) class Server (paramiko.ServerInterface): - # 'data' is the output of base64.encodestring(str(key)) + # 'data' is the output of base64.b64encode(key) # (using the "user_rsa_key" files) data = (b'AAAAB3NzaC1yc2EAAAABIwAAAIEAyO4it3fHlmGZWJaGrfeHOVY7RWO3P9M7hp' b'fAu7jJ2d7eothvfeuoRFtJwhUmZDluRdFyhFY/hFAh76PJKGAusIqIQKlkJxMC' |