Infinite.Cipher
6.0.0
dotnet tool install --global Infinite.Cipher --version 6.0.0
dotnet new tool-manifest
dotnet tool install --local Infinite.Cipher --version 6.0.0
#tool dotnet:?package=Infinite.Cipher&version=6.0.0
nuke :add-package Infinite.Cipher --version 6.0.0
🐀:closed_lock_with_key: Infinite
A .NET Core Tool to encrypt and decrypt files using AEAD AES-256-GCM, as well as generate an encryption key.
The tool was created to help encrypt configuration files for use with the .NET Core projects using the Infinite.AddEncryptedJsonToConfiguration library. Infinite can be used as a stand-alone tool to encrypt and decrypt files.
Installation
Download and install the .NET Core 6.0 SDK or newer. Once installed, run the following command to run OtterKeys:
dotnet tool install -g Infinite.Cipher
Usage
Once installed you can call Infinite.Cipher from the command line:
CipherTool --help
You can use the --help option to get more details about the commands and their options.
Creating a new encryption key
Creating a new encryption key is as easy as typing:
CipherTool generate
CipherTool will output the encryption key in the console.
The encryption key should be stored securely. Each of your projects/products should have it's own unique key if the key is used to encrypt a configuration file. Never check the encryption key into a source control.
Encrypt a file
You can encrypt a file using the following command:
Usage: CipherTool encrypt -k {Key} {FileName}
The file is replaced. Add the -c option to output the encrypted content to your console instead of writing to the file system.
Decrypt a file
You can decrypt a file using the following command:
Usage: CipherTool decrypt -k {Key} {FileName}
The file is replaced. Add the -c option to output the decrypted content to your console instead of writing to the file system.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
Upgraded to .net 6