crypto.hash

coronium.crypto.hash( string )

Create a MD5 hash.

Parameters

Name Details
string A string to MD5. (String, required)

Returns

A MD5 hash.

Examples

local hashmd5 = coronium.crypto.hash( str )

crypto.digest

coronium.crypto.digest( password )

Creates an encrytped password.

Parameters

Name Details
string A password to encrypt. (String, required)

Returns

Encrypted password

Examples

local enc_password = coronium.crypto.digest( str_password )

crypto.verify

coronium.crypto.verify( password, digest )

Verify a string password against a digest.

Parameters

Name Details
password A string password. (String, required)
digest Encrypted password. (String, required)

Returns

Boolean. True if verified.

Examples

local verified = coronium.crypto.verify( password, digest )

crypto.hmac_sha1

coronium.crypto.hmac_sha1( string )

Create a sha hash.

Parameters

Name Details
string A string to hmac_sha1. (String, required)

Returns

A sha1 hash.

Examples

local strsha = coronium.crypto.hmac_sha1( str )