This plugin is a wrapper around libargon2.
Follow the instructions in our manual to add our package repository and then run the below command.
apt-get install halon-extras-argon2
yum install halon-extras-argon2
These functions needs to be imported from the extras://argon2 module path.
Return boolean if password matches hash.
Params
- encoded
string- The encoded hash - pwd
string- The password to verify
Returns
Return boolean if password matches hash.
Example
import { argon2d_verify } from "extras://argon2";
echo argon2d_verify(''$argon2d$v=19$m=16,t=2,p=1$Z0E4ODUyckw1SmFWQ2hqbA$i4VZhbsITfwLIRPfkUqaFQ'', "hello");