update README

This commit is contained in:
r4sas
2017-02-21 05:09:38 +03:00
parent 500da36c5b
commit 5a804462f4
2 changed files with 28 additions and 8 deletions

View File

@@ -15,6 +15,14 @@ def path_leaf(path):
def send(args):
if args.comment:
text = args.comment
elif args.file:
text = "Sending file to you!"
else:
print("Nothing to send!")
sys.exit(1)
passphrase = b64encode(os.urandom(32))
if args.debug: print("Passphrase:\t{}".format(b64encode(passphrase)))
if args.password:
@@ -25,11 +33,6 @@ def send(args):
password = passphrase
if args.debug: print("Password:\t{}".format(password))
if args.comment:
text = args.comment
else:
text = "Sending file to you!"
if args.file:
check_readable(args.file)
with open(args.file, "rb") as f: