1. Hash password using bcrypt-base64-SHA256
2. Encrypt-then-MAC the hash
public static hashAndEncrypt ( string $password, Defuse\Crypto\Key $aesKey ) : string | ||
$password | string | |
$aesKey | Defuse\Crypto\Key | |
return | string |
public static hashAndEncrypt ( string $password, Defuse\Crypto\Key $aesKey ) : string | ||
$password | string | |
$aesKey | Defuse\Crypto\Key | |
return | string |