Core Function BCrypt

From Sputnik Wiki
Jump to: navigation, search
BCrypt( <expression>, <rounds> )

Contents

Description

Hash a string (usually password) with BCrypt.

Parameters

expression

The string/password to hash.

rounds

Optional; The number of rounds to use when generating the hash.

Higher takes longer but is more secure

Default: 10

Return Value

Returns the hash.

Remarks

This is considered a lot more secure then SHA1 and MD5 since it takes considerably more processing power to try crack it and you can simply increase the rounds making even extreme processing power incapable of cracking it within the attackers life time.

Example

my $Password = "1221";
my $HASH = BCrypt($Password);
println($HASH);
If(BCryptVerify($Password, $HASH))
{
	println("TRUE");
}
else
{
	println("FALSE");
}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox