Documentation

Cryptography

Table of Contents

hashHmac()  : string
Hash content by provided key
random()  : string
Generates random string

Methods

hashHmac()

Hash content by provided key

public static hashHmac(string $content, string $key) : string
Parameters
$content : string
$key : string
Return values
string

random()

Generates random string

public static random([int $length = 10 ]) : string
Parameters
$length : int = 10
Return values
string

Search results