Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnandersen777/key
Golang crypto wraper
https://github.com/johnandersen777/key
Last synced: about 15 hours ago
JSON representation
Golang crypto wraper
- Host: GitHub
- URL: https://github.com/johnandersen777/key
- Owner: johnandersen777
- Created: 2015-09-17T08:00:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-18T20:12:32.000Z (over 6 years ago)
- Last Synced: 2024-10-24T09:12:27.108Z (25 days ago)
- Language: Go
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Key
---This package strives to be an easy to use wraper on golangs crypto
It uses docker to compile the binaries and the main Dockerfile adds the linux
binary to the busybox image to create an extremely small final imageBuilding
---```bash
go build -o key_linux-amd64 -tags netgo *.go
# Or
./script/build
# My favorite
SKIP_BUILD=1 SKIP_IMAGE=1 ./script/build -osarch="linux/amd64"
```
> `-tags netgo` will help you achieve static binaries :)Running
---```bash
john@localhost:key$ ./key_linux-amd64 gen
john@localhost:key$ ./key_linux-amd64 encrypt --message="Hello World" > /tmp/t
john@localhost:key$ ./key_linux-amd64 decrypt --message='/tmp/t'
Hello World
john@localhost:key$```
Changing The Name
---```bash
./script/change-name $GITHUB_USERNAME $PROJECT_NAME
```- John Andersen