Encryption
Less than 1 minute
Encryption
Credential hashing options for Hazaar\Auth\Adapter.
class Encryption extends \Hazaar\Model\StructExtends: Hazaar\Model\Struct
Properties
hash
The hash algorithm(s) to use to encrypt credentials. Either a single algorithm name
public array|string $hash = 'sha1'Type: array|string
(e.g. sha256) or an array of algorithm names applied in order, each iteration appending the original credential (and salt, if set) before hashing with the next algorithm.
count
The number of times to "hash the hash" for extra obfuscation.
public int $count = 1Type: int
salt
Value appended to the credential (and hash, on subsequent iterations) before hashing.
public mixed $salt = 'hazaar-default-salt'Type: mixed
useIdentity
Whether to prepend the identity to the credential before hashing.
public bool $useIdentityType: bool
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000