update readme, change paste text parameter

This commit is contained in:
r4sas
2018-05-22 17:59:15 +03:00
parent b679e68f31
commit 5ef9c93077
3 changed files with 7 additions and 45 deletions

View File

@@ -29,8 +29,8 @@ def compress(s):
def send(args):
if args.stdin:
text = args.stdin.read()
elif args.comment:
text = args.comment
elif args.text:
text = args.text
elif args.file:
text = "Sending a file to you!"
else:
@@ -52,7 +52,7 @@ def send(args):
if args.debug: print("Password:\t{}".format(password))
# Encrypting text (comment)
# Encrypting text
cipher = SJCL().encrypt(compress(text.encode('utf-8')), password, mode='gcm')
# TODO: should be implemented in upstream