v1.1.0: Binary mode
This release adds a new mode: binary mode. This new mode generates a binary secret with full 256 bites of randomness. Due to the nature of the mode, it will ignore most of the available options. The only available options for this mode are: -f
to set the length of the returned secret in bytes, -bh
to tell apg-go to output the generated secret in hexadecial representation and -bn
to instruct apg-go to return a newline after the generated secret. Any other option available in the other modes will be ignored.
This mode can be useful for example if you need to generate a AES-256 encryption key. Since 32 bytes is the default length for the secret generation in this mode, you can simply generate a secret key with the following command:
$ apg -a 3 -bh
a1cdab8db365af3d70828b1fe43b7896190c157ad3f1ae2a0a1d52ec1628c6b5
For ease for readability we used the -bh
flag, to instruct apg-go to output the secret in its hexadecimal representation
What's Changed
- Add test for excluded characters in config by @wneessen in #55
- GoReportCard cleanup by @wneessen in #56
- Update README with detailed installation instructions by @wneessen in #57
- Fix typos by @wneessen in #58
- Add examples section to README.md and pin-generator example by @wneessen in #59
- Add binary mode for secret generation by @wneessen in #60
Full Changelog: v1.0.0...v1.1.0