Norman Ramsey
Norman Ramsey

Reputation: 202505

Fastest path to Lua SHA256 RFC-2104 compliant HMAC signature?

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.

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

Answers (3)

Brandon
Brandon

Reputation: 545

A work-around might be the free signing service at http://apisigning.com/

Upvotes: 0

uroc
uroc

Reputation: 4083

How about LuaCrypto, a front-end for OpenSSL:

http://luacrypto.luaforge.net/

Upvotes: 2

Martin v. Löwis
Martin v. Löwis

Reputation: 127467

It looks like mushclient has already written a Lua wrapper for a SHA-256 library.

Upvotes: 2

Related Questions