https://github.com/jeffotoni/gocry
Encrypt files
https://github.com/jeffotoni/gocry
crypto cryptography go golang
Last synced: about 1 year ago
JSON representation
Encrypt files
- Host: GitHub
- URL: https://github.com/jeffotoni/gocry
- Owner: jeffotoni
- Created: 2017-06-11T14:45:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-15T18:01:34.000Z (about 9 years ago)
- Last Synced: 2025-02-10T03:29:08.523Z (over 1 year ago)
- Topics: crypto, cryptography, go, golang
- Language: Go
- Size: 13.2 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gocry
Encrypting files, strings, with "crypto / aes" and "crypto / cipher" algorithms.
It's cool that you will be able to use Crypt for your files.
# Example of operation

# Packages
go get github.com/fatih/color
# Install
$ go build gocry.go
$ sudo mv gocry /usr/bin
# Example 1
```go
$ gocry --version
$ v.1.0
$ gocry --token 32
$ Your token [32] is: TYJDUBTQWOLBEF4YONHD4ZDEL74F3IUW
$ gocry --crypt --file ~/Downloads/crypt/ex3.png --key TYJDUBTQWOLBEF4YONHD4ZDEL74F3IUW
$ gocry --descr --file ~/Downloads/crypt/ex3.png.crypt --key TYJDUBTQWOLBEF4YONHD4ZDEL74F3IUW
```
# Example 2
```go
$ gocry --help
--crypt string
empty
--descr string
empty
--file string
Exs: file.pdf
--key string
default 32 bytes: [DKYPENJXW43SMOJCU6F5TMFVOUANMJNL]
--token string
Generate token: 16|32|64|128|512|1024 bytes (default "32")
```