Core Function BCryptVerify
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> BCryptVerify( <expression>, <hash> ) </pre> === Description === Verify a hash to a string (usually password) with BCrypt. === Parameters === ==== expression ==== The ...")
Newer edit →
(Created page with "<pre> BCryptVerify( <expression>, <hash> ) </pre> === Description === Verify a hash to a string (usually password) with BCrypt. === Parameters === ==== expression ==== The ...")
Newer edit →
Revision as of 14:46, 19 January 2013
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"); }