Kryptera is a .NET Core Tool to quickly encrypt and decrypt files using AEAD AES-256-GCM algorithm from CryptHash.NET, as well as an encryption key generator. Kryptera means "encrypt" in Swedish.
| Package | Stable | Preview |
|---|---|---|
| Kryptera | ||
| Kryptera.Tools |
The Kryptera library can be obtained by either locally cloning this git repository and building it or via NuGet/Feedz:
Install-Package Krypteraor
dotnet add package KrypteraThe command-line tool for encrypting and decrypting files can be installed through the dotnet CLI:
dotnet install --global Kryptera.Toolsafter which it is available for use in your shell as kryptera.
You can use the --help option to get detailed information about the commands.
kryptera
Usage:
kryptera [options] [command]
Options:
-v, --verbosity <Critical|Debug|Error|Information|None|Trace|Warning> Set output verbosity
--version Show version information
-?, -h, --help Show help and usage information
Commands:
encrypt <source> Encrypt a file or directory using AES-256-GCM
decrypt <source> Decrypt a file or directory using AES-256-GCM
generate Generate a new AES-256 keyYou can create a new encryption key using the following command:
> kryptera generate
tRKvyxIcQA6jV0eUoH/LA1QFlDSNUQRfzDJqU9CSvzM=The output is sent directly to the console, and can be piped directly as input into other applications or scripts.
You can encrypt a file or directory using the following command:
kryptera encrypt --key <KEY> <SOURCE>The filenames for the encrypted files will have .aes appended to them to make them easy to distinguish from the original files.
You can decrypt a file or directory using the following command:
kryptera decrypt --key <KEY> <SOURCE>If the encrypted files have .aes extensions, then the filenames for the decrypted files with have this extension removed. If the encrypted file extensions are not .aes, then the filenames of the decrypted files with have -decrypted appended to the name right before the extension.
MIT