Base64 decode or any other one-to-one hash creator from a seed in motoko

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.

Yes, there is, look at this: Hash :: Internet Computer

1 Like

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:

1 Like

Both excatly as I needed! Thank you