SHA256 | base64
SHA256 | base64
Posted Feb 1, 2014 4:18 UTC (Sat) by ploxiln (subscriber, #58395)In reply to: SHA256 | base64 by mathstuf
Parent article: OpenSSH 6.5 released
Posted Feb 1, 2014 5:44 UTC (Sat)
by aquasync (guest, #26654)
[Link]
Posted Feb 1, 2014 16:53 UTC (Sat)
by lambda (subscriber, #40735)
[Link] (1 responses)
Posted Feb 1, 2014 17:04 UTC (Sat)
by lambda (subscriber, #40735)
[Link]
By the way, my version of the base64 command defaults to encoding, while it looks like the one mentioned above defaults to decoding; and they don't take the same options so you can't write something portable to both (mine doesn't have the
If we're already using the openssl command, we can work around that difference with:
SHA256 | base64
You can instead use:
SHA256 | base64
sha256sum () {
openssl sha256 -binary "$@" | base64
}
SHA256 | base64
-e option).
sha256sum () {
openssl sha256 -binary "$@" | openssl base64
}
