Kryptor
Search…
πŸ’»
Usage
If you are just getting started, then I recommend reading the tutorial.​
1
Usage: kryptor [options] [file]
2
​
3
Arguments:
4
file specify a file/folder path
5
​
6
Options:
7
-e|--encrypt encrypt files/folders
8
-d|--decrypt decrypt files/folders
9
-p|--password specify a password (empty for interactive entry)
10
-k|--keyfile specify or randomly generate a keyfile
11
-x|--private specify your private key (unused or empty for default key)
12
-y|--public specify a public key
13
-n|--names encrypt file/folder names
14
-o|--overwrite overwrite files
15
-g|--generate generate a new key pair
16
-r|--recover recover your public key from your private key
17
-s|--sign create a signature
18
-c|--comment add a comment to a signature
19
-l|--prehash sign large files by prehashing
20
-v|--verify verify a signature
21
-t|--signature specify a signature file (unused for default name)
22
-u|--update check for updates
23
-a|--about view the program version and license
24
-h|--help show help information
25
​
26
Examples:
27
--encrypt [file]
28
--encrypt -p [file]
29
--encrypt [-y recipient's public key] [file]
30
--decrypt [-y sender's public key] [file]
31
--sign [-c comment] [file]
32
--verify [-y public key] [file]
Copied!

Specifying files

When referencing file names/paths that contain spaces, you must surround them with "speech marks":
1
$ kryptor -e "GitHub Logo.png"
2
$ kryptor -e "C:\Users\samuel-lucas6\Downloads\GitHub Logo.png"
Copied!
Files in the same directory as the kryptor executable can be specified using a file name:
1
$ kryptor -e file.txt
Copied!
However, files that are in a different directory to the kryptor executable (e.g. in your Documents folder) must be specified using a file path:
1
$ kryptor -e "C:\Users\samuel-lucas6\Documents\file.txt"
Copied!
Multiple files and/or directories can be specified at once:
1
$ kryptor -e file1.txt file2.jpg file3.mp4 Photos Videos
Copied!

Specifying your private key

You can use the -x|--private option without specifying a file path to use your default private key. However, in most cases, this option does not need to be specified. For example, you can perform encryption, decryption, and signing with your default private key as follows:
1
$ kryptor -e file.txt
2
$ kryptor -d file.txt.kryptor
3
$ kryptor -s file.txt
Copied!
This is the recommended approach, but it means your private keys must be kept in the default folder, which varies depending on your operating system:
  • Windows: %USERPROFILE%/.kryptor
  • Linux: /home/.kryptor
  • macOS: /Users/USERNAME/.kryptor
To specify a private key for -r|--recover or a private key not stored in the default folder, you must use the -x|--private option followed by :[file] like so:
1
$ kryptor -r -x:"C:\Users\samuel-lucas6\Documents\encryption.private"
Copied!
Last modified 2mo ago