MD5, SHA hash with only lua

Hi guys,

I want to save my web page's login password with encryption.

This is a pure lua script that i've found, but it's not working well.

Are there any pure lua scripts that i can save my password into MD5 or SHA, or another encryptions?
I cannot search it.

More, Base64 is not an option since it can be decoded easily.

Thank you.