diff --git a/cc/sc-encode b/cc/sc-encode index c63ee86..89346df 100644 --- a/cc/sc-encode +++ b/cc/sc-encode @@ -1,4 +1,7 @@ #!/usr/bin/python3 import sweecrypt from sys import argv -print(sweecrypt.encrypt(" ".join(argv[3:]))) \ No newline at end of file +if argv[3][:2] == "-s": + print(sweecrypt.encrypt(" ".join(argv[4:]), argv[3][3:])) +else: + print(sweecrypt.encrypt(" ".join(argv[3:]))) \ No newline at end of file