Skip to content
Angelo Geels edited this page May 3, 2015 · 1 revision

Provides certain types of cryptography and hash functions.

Functions

  • crypt:md5(string) Returns an MD5 hash of the given string. For example: 7c846d0303ecd5421d8a8b4dfb76d5db

Permissions

This library does not require any permissions.

Example

local hash = crypt:md5('Nimble Writer')
if hash == '7c846d0303ecd5421d8a8b4dfb76d5db' then
  -- the hash is correct!
end

Clone this wiki locally