HashAlgo

enum \TYPO3\CMS\Core\Crypto\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

Methods

equals()

public equals(string $other) : bool

Parameters

$other : string

Return values

bool

hash()

public hash(string $data[, bool $binary = false ]) : string

Parameters

$data : string
$binary : bool = false

Return values

string

isAllowedForHmac()

public isAllowedForHmac() : bool

Return values

bool

length()

public length([bool $binary = false ]) : int

Parameters

$binary : bool = false

whether to return binary or hex length

Return values

int
On this page