Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j-siu/go-crypto
Command line crypto function: anonymous box seal
https://github.com/j-siu/go-crypto
anonymous box crypto go golang seal
Last synced: 28 days ago
JSON representation
Command line crypto function: anonymous box seal
- Host: GitHub
- URL: https://github.com/j-siu/go-crypto
- Owner: J-Siu
- License: mit
- Created: 2022-04-26T08:26:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-29T07:05:28.000Z (almost 2 years ago)
- Last Synced: 2024-10-19T17:27:57.352Z (3 months ago)
- Topics: anonymous, box, crypto, go, golang, seal
- Language: Go
- Size: 36.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-crypto [![Paypal donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/donate/?business=HZF49NM9D35SJ&no_recurring=0¤cy_code=CAD)
Command line tool for encryption function.
### Table Of Content
- [Table Of Content](#table-of-content)
- [Purpose](#purpose)
- [Usage](#usage)
- [Example](#example)
- [Repository](#repository)
- [Contributors](#contributors)
- [Change Log](#change-log)
- [License](#license)> This is not crypto currency program.
### Purpose
Provide crypto function for command line scripting, eg. [mygit](https://github.com/J-Siu/mygit). Currently only box seal anonymous is implemented, which is used for calculating github repository secret.
Open an issue here or in [go-helper](https://github.com/J-Siu/go-helper) if you need additional crypto functions.
### Usage
```sh
$ go-crypto box sealanonymous -h
x/crypto box seal anonymous. Output is base64 encodedUsage:
go-crypto box sealanonymous [flags]Flags:
-h, --help help for sealanonymous
-k, --key string (required) base64 encoded public key
-m, --msg string (required) plain text message
```### Example
```sh
$ go run main.go box sealanonymous -k 'z492di80U5FuJfY8VH2M26Cnzg4UfRRxlqTXMHSWfyY=' -m "This is a test"
F4XDi4ZPCwRAizgVry3CbBLaX9GDbwGXkf/SRoLCEX2veSZKdHtIFMSDGPwIB/h/V0Vodu4k1h0FSMdksD0=
```### Repository
- [go-crypto](https://github.com/J-Siu/go-crypto)
### Contributors
- [John Sing Dao Siu](https://github.com/J-Siu)
### Change Log
- 1.0.0
- Implement box seal anonymous
- v1.0.1
- Fix `goreleaser`
- v1.0.2
- Update to Go 1.20 and dependency### License
The MIT License
Copyright (c) 2023 John Siu
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.