Usage: kryptor [options] [file]Arguments:file specify a file pathOptions:-e|--encrypt encrypt files/folders-d|--decrypt decrypt files/folders-p|--password use a password-k|--keyfile specify a keyfile-x|--private specify your private key (blank for default)-y|--public specify a public key-f|--obfuscate obfuscate file names-o|--overwrite overwrite input files-g|--generate generate a new key pair-r|--recover recover your public key from your private key-s|--sign create a signature-c|--comment add a comment to a signature-l|--prehash sign large files by prehashing-v|--verify verify a signature-t|--signature specify a signature file-u|--update check for updates-a|--about view the program version and license-h|--help show help informationExamples:--encrypt -p [file]--encrypt -x [-y recipient public key] [file]--decrypt -x [-y sender recipient key] [file]--sign -x [-c comment] [file]--verify [-y public key] [-t signature] [file]
When referencing file paths/file names that contain spaces, you must surround them with "speech marks" on Windows and 'apostrophes' on Linux/macOS:
$ kryptor -e -p "GitHub Logo.png"$ kryptor -e -p "/home/samuel/Downloads/GitHub Logo.png"
Files in the same directory as the kryptor
executable can be specified using their file name:
$ kryptor -e -p message.txt
However, files that are not in the same directory as the kryptor
executable must be specified using a file path:
$ kryptor -e -p /home/samuel/Documents/message.txt
You can use the -x|--private
option without specifying a file path to use your default private key. This is the recommended approach, but it means your private keys must be kept in the default folder.
To specify a non-default private key, you can use -x|--private
followed by =[file]
like so:
$ kryptor -e -x=C:\Users\Samuel\.kryptor\encryption.private message.txt
You must specify the = sign followed by the private key file path when using a non-default private key.