|  Download Password (abstract)Namespace: \ParagonIE\Halite A simplified interface for storing encrypted password hashes (hash then encrypt)
for user authentication, powered by our symmetric-key cryptography. Static Methodshash()
> public statichash(string $password,EncryptionKey $secret_key):string Hash a password (with a randomly generated scrypt salt), then encrypt the hash
using our symmetric encryption key. verify()
> public staticverify(string $password,string $stored,EncryptionKey $secret_key):boolean Decrypt the $storedpassword hash, then verify that it matches the given$password. |