Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gowon/kryptera
Quickly encrypt and decrypt files using AEAD AES-256-GCM, as well as an encryption key generator.
https://github.com/gowon/kryptera
aes decryption encryption generator
Last synced: 15 days ago
JSON representation
Quickly encrypt and decrypt files using AEAD AES-256-GCM, as well as an encryption key generator.
- Host: GitHub
- URL: https://github.com/gowon/kryptera
- Owner: gowon
- License: mit
- Created: 2021-05-06T03:45:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-17T06:32:57.000Z (over 3 years ago)
- Last Synced: 2024-12-03T10:11:39.040Z (about 1 month ago)
- Topics: aes, decryption, encryption, generator
- Language: C#
- Homepage:
- Size: 82 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kryptera
[![Nuget](https://img.shields.io/nuget/dt/Kryptera?color=blue&label=Kryptera%20downloads)](https://www.nuget.org/packages/Kryptera)
[![Nuget](https://img.shields.io/nuget/dt/Kryptera.Tools?color=blue&label=Kryptera.Tools%20downloads)](https://www.nuget.org/packages/Kryptera.Tools)
[![codecov](https://codecov.io/gh/gowon/kryptera/branch/main/graph/badge.svg?token=RJUNMU04ZE)](https://codecov.io/gh/gowon/kryptera)Kryptera is a .NET Core Tool to quickly encrypt and decrypt files using AEAD AES-256-GCM algorithm from [CryptHash.NET](https://github.com/alecgn/crypthash-net/), as well as an encryption key generator. Kryptera means "encrypt" in [Swedish](https://translate.google.com/?sl=sv&tl=en&text=kryptera&op=translate).
## Install
|Package|Stable|Preview|
|-|-|-|
|Kryptera|[![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/Kryptera)](https://www.nuget.org/packages/Kryptera)|[![feedz.io](https://img.shields.io/badge/endpoint.svg?url=https%3A%2F%2Ff.feedz.io%2Fgowon%2Fpre-release%2Fshield%2FKryptera%2Flatest)](https://f.feedz.io/gowon/pre-release/packages/Kryptera/latest/download)|
|Kryptera.Tools|[![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/Kryptera.Tools)](https://www.nuget.org/packages/Kryptera.Tools)|[![feedz.io](https://img.shields.io/badge/endpoint.svg?url=https%3A%2F%2Ff.feedz.io%2Fgowon%2Fpre-release%2Fshield%2FKryptera.Tools%2Flatest)](https://f.feedz.io/gowon/pre-release/packages/Kryptera.Tools/latest/download)|The Kryptera library can be obtained by either locally cloning this git repository and building it or via NuGet/Feedz:
```shell
Install-Package Kryptera
```or
```shell
dotnet add package Kryptera
```The command-line tool for encrypting and decrypting files can be installed through the `dotnet` CLI:
```shell
dotnet install --global Kryptera.Tools
```after which it is available for use in your shell as `kryptera`.
## Usage
You can use the `--help` option to get detailed information about the commands.
```shell
krypteraUsage:
kryptera [options] [command]Options:
-v, --verbosity Set output verbosity
--version Show version information
-?, -h, --help Show help and usage informationCommands:
encrypt Encrypt a file or directory using AES-256-GCM
decrypt Decrypt a file or directory using AES-256-GCM
generate Generate a new AES-256 key
```### Create an encryption key
You can create a new encryption key using the following command:
```shell
> kryptera generate
tRKvyxIcQA6jV0eUoH/LA1QFlDSNUQRfzDJqU9CSvzM=
```The output is sent directly to the console, and can be piped directly as input into other applications or scripts.
### Encrypt a file or directory
You can encrypt a file or directory using the following command:
```shell
kryptera encrypt --key
```The filenames for the encrypted files will have `.aes` appended to them to make them easy to distinguish from the original files.
### Decrypt a file of directory
You can decrypt a file or directory using the following command:
```shell
kryptera decrypt --key
```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.
## License
MIT