Hi
I was wondering if there is any library in Motoko that can create a simple hashed string(even a base64decode) from a seed ? I prefer it being one-way encryption like sha512, however, I do not mind if that is not an option and get a decode-able like base64.
1 Like
Yes, there is, look at this: Hash :: Internet Computer
2 Likes
I probably don’t understand your question (I’m not a crypto person), but if its any help, there is this:
which you may be able to use or adapt to SHA-512.
If you just need simple (non cryptographic) hash function on Text values, the Text library provides this:
2 Likes
Both excatly as I needed! Thank you