HashAlgo : string
Enum to be used for hashing functions.
Table of Contents
Cases
- SHA1 = 'sha1'
- SHA256 = 'sha256'
- SHA384 = 'sha384'
- SHA3_256 = 'sha3-256'
- SHA3_384 = 'sha3-384'
- SHA3_512 = 'sha3-512'
- SHA512 = 'sha512'
Methods
- equals() : bool
- hash() : string
- isAllowedForHmac() : bool
- length() : int
Cases
SHA1
SHA256
SHA384
SHA512
SHA3_256
SHA3_384
SHA3_512
Methods
equals()
public
equals(string $other) : bool
Parameters
- $other : string
Return values
boolhash()
public
hash(string $data[, bool $binary = false ]) : string
Parameters
- $data : string
- $binary : bool = false
Return values
stringisAllowedForHmac()
public
isAllowedForHmac() : bool
Return values
boollength()
public
length([bool $binary = false ]) : int
Parameters
- $binary : bool = false
-
whether to return binary or hex length