Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/servehub/secret-man
https://github.com/servehub/secret-man
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/servehub/secret-man
- Owner: servehub
- Created: 2019-09-07T11:30:58.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T19:14:26.000Z (over 1 year ago)
- Last Synced: 2024-06-20T07:55:55.707Z (5 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# secret-man
### Run service
```
secret-man --listen=127.0.0.1:8034 --secret-key=/etc/server/secrets-rsa-private.key
```### Generate keys
```
openssl genpkey -aes-256-cbc -algorithm RSA -out private.key -pkeyopt rsa_keygen_bits:4096 && openssl rsa -in private.key -pubout -out public.key
```### Encrypt/Decrypt data
```
echo -n 'mypass123' | openssl rsautl -encrypt -inkey rsa-public.key -pubin | openssl rsautl -decrypt -inkey rsa-private.key
```