https://github.com/gusandrioli/small-aes
Simple text and PDF encrypter/hasher CLI application.
https://github.com/gusandrioli/small-aes
aes cryptography golang
Last synced: 5 months ago
JSON representation
Simple text and PDF encrypter/hasher CLI application.
- Host: GitHub
- URL: https://github.com/gusandrioli/small-aes
- Owner: gusandrioli
- Created: 2020-11-24T07:57:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-16T03:07:22.000Z (over 4 years ago)
- Last Synced: 2026-01-11T23:52:56.819Z (5 months ago)
- Topics: aes, cryptography, golang
- Language: Go
- Homepage:
- Size: 4.77 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **small-aes**
Simple Encrypter/Hasher CLI application.
## Installation
### 1 - Download package (Recommended)
```sh
go install github.com/gusandrioli/small-aes
```
### 2 - Download executable
Go to Releases and download the latest binary. Then run it locally:
```sh
./small-aes
```
## Quick Start
```sh
small-aes pdfEncrypt test.pdf # AES encrypts pdf and returns 127 byte password
small-aes txtEncrypt test.txt yoursuperpasswrd # AES encrypts txt
```
## Commands
```
pdfDecrypt Decrypts pdf with a 127 byte key
pdfEncrypt Encrypts pdf with AES and a 127 byte key
sha256EvalHash Returns bool if txt file equals hash
sha256Hash Hashes txt file into 32 byte hash
txtDecrypt Decrypts your message with a key of 16, 24, or 32 bytes.
txtEncrypt Encrypts your message with a key 16, 24, or 32 bytes.
```
## References
1. PDF encryption wraps the [pdfcpu API](https://github.com/pdfcpu/pdfcpu).
2. Text [encryption](https://golang.org/pkg/crypto/aes/)/[hashing](https://golang.org/pkg/crypto/sha256/) uses the standard library.
## Bugs
Bugs or suggestions? Open an issue [here](https://github.com/gusandrioli/small-aes/issues/new).