Dokumentaro de Gambaso
Compilation & Installation from source code
Components
gb
gb.crypt
Crypt
MD5
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Crypt.Check (gb.crypt)

Static Function Check ( Password As String, Crypt As String ) As Boolean

Checks that the Password string matches the encrypted Crypt string.

This function returns TRUE if the password does not match, and FALSE if it matches.

The crypt algorithm is encoded in the crypt string, so you do not need to specify it.

If Crypt is a void string, then the function always returns FALSE.

Example

Use "gb.crypt" 'For Gambas Script Only

Print "Fail: "; Crypt.Check("Password1234", "$6$pf12345678901$53aJvyLDDgPGBbyjk3WW/X9Vzze6NHwGEdIyHhQAiorqPQAm5LV6tR/KFQU/U/YSNCrCxfzoHMKMuTg/WiRHB0")
Fail: False