Are there any implementations of these hashing algorithms in pure lua? I've found a couple for MD5 and SHA1 but none for these two which are the ones I'll be needing for a project. In the interests of portability, I need something in pure lua. Anyone know of anything?
Pure lua hashing, RIPEMD160 or SHA2?
1.1k Views Asked by Zmoneaux At
2
There are 2 best solutions below
0
catwell
On
If you use LuaJIT I have written an implementation of SHA256 here but it uses FFI ctypes: https://github.com/catwell/cw-lua/tree/master/sha256
Otherwise there's one here in pure Lua 5.2 which I have not tested: http://lua-users.org/wiki/SecureHashAlgorithm (already cited by Dream Eater).
Related Questions in HASH
- How can py tuple implicit cast to int?
- How to properly set hashes in script-src CSP policy header?
- Algorithm for finding the largest common substring for n strings using Rabin-Karp function
- Lua: is there a need to use hash of string as a key in lua tables
- When the key values are the same, the memory limit is exceeded when making a hash join
- Short for creating an array of hashes in powershell malfunction?
- LC347: Top K Frequent Elements; final result returns an extra element in list/array
- Hashing vertices of a Graph in C
- Is there a limit on the message size for SHA3?
- When hashing an API key, should I hash the suffix / prefix as well?
- Cmake error : Configuring incomplete, errors occurred
- murmur3 hashing function in postgres
- Hashing the password if it is not hashed in django
- Order of a set in Python
- Comparing the hash of a file, containing a list of hashes of multiple files instead of each file, is it good?
Related Questions in LUA
- How to make a ServerScript wait for a LocalScript to fire a RemoteEvent
- global const variables in lua 5.4
- Backpack for roblox simulator game
- Calling an event with a delay in Roblox Studio. How to do?
- lghub lua script presskey
- LGHUB Lua script
- In pairs for loop not looping inside of another in pairs loop
- Lua syntax error expected '(' near update_rotation
- 64 unsigned integers in Lua 5.3/5.4 do not behave like in "Programming in Lua"
- How to write a lua pattern that is aware of escaped characters?
- having trouble installing neovim plugin
- Incorrect number comparison result (Lua)
- Lua: is there a need to use hash of string as a key in lua tables
- continuations in lua, is not working while trying extending it
- Neovim Kickstart config "E5113: Error while calling lua chunk: vim/_editor.lua:0: attempt to compare two table values" everytime I open neovim
Related Questions in SHA2
- Does j2me support SHA-2 for signing an Android Application?
- Wrong hash output in C implementation of sha2 256
- PBKDF2-HMAC-SHA2 test vectors
- Compute blob hash in trigger on blob's table
- Does SHA-2 Hashing use a key?
- How to fix Authentication Plugin error for dBeaver
- Choosing salt and key size for Rfc2898DeriveBytes
- Need some help related to sha512
- Netbeans java web service client consuming WCF service using message security with algorithmSuite Basic256Sha256
- Need to create a SHA2 hash in c#
- snmp trap v3 with SHA-256
- How does MySQL know which algorithm to use when reading logins stored in mysql.user?
- How do I properly sign a SOAP message with SHA2 in C#?
- Is it possible to make a program that will find input messages that give each of the possible 512-bit strings from SHA-512?
- Java | Maverick SSH | Failed to negotiate a transport Component | sha1 md5 | sha2-512 sha2-256
Related Questions in RIPEMD
- HashLib module does not work in Google Colab no RIPEMD160
- How to properly implement key derivation in bip32, bip44, etc.?
- How to enable the OpenSSL 3.0 legacy provider Github Actions?
- Unsupported hash type ripemd160 with hashlib in Python
- CTF Type Juggling with ripemd160 hash
- SHA256 and RIPEMD160HASH in c program
- Unpacking ripemd160 result in python
- TypeError: int() can't convert non-string with explicit base
- Another approach to apply RIPEMD in CSV file
- PKHash RipeMD160 in python
- Create a hashvalue using a custom key and the algorithm ripemd160
- C++ OpenSSL Ripemd-160 gives wrong output
- Padding RIPEMD 160
- Python ripemd160 error
- RIPEMD160 hash in Matlab
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Lua's lmd5 library states: A message digest library for Lua based on OpenSSL. It supports MD2, MD4, MD5, SHA1, SHA2, RIPEMD160, MDC2. Though I have never used it. But there are some libraries listed here. You might one of them useful.
Here's another library which might be what you seek.