Reputation: 202505
I'm running Debian Linux, and for a Lua script I need to create a SHA256 checksum to authenticate requests to Amazon Web Services. They don't say for sure but it looks as if they may want a base64 encoding of the resulting SHA256 checksum.
/usr/bin/sha256sum
for this purpose.I surely don't need to reimplement SHA256 for myself; if someone has an implementation in ANSI standard C that they like, please let me know. Or a better solution!
Upvotes: 2
Views: 1801
Reputation: 545
A work-around might be the free signing service at http://apisigning.com/
Upvotes: 0
Reputation: 4083
How about LuaCrypto, a front-end for OpenSSL:
http://luacrypto.luaforge.net/
Upvotes: 2
Reputation: 127467
It looks like mushclient has already written a Lua wrapper for a SHA-256 library.
Upvotes: 2