Core Function BCryptVerify
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> BCryptVerify( <expression>, <hash> ) </pre> === Description === Verify a hash to a string (usually password) with BCrypt. === Parameters === ==== expression ==== The ...") |
m (1 revision) |
(One intermediate revision by one user not shown) |
Latest revision as of 12:37, 14 June 2015
BCryptVerify( <expression>, <hash> )
Contents |
Description
Verify a hash to a string (usually password) with BCrypt.
Parameters
expression
The string/password to check.
hash
The hash to verify.
Return Value
Returns TRUE on success and FALSE on fail.
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"); }