Documentation

Key implements Key

Interfaces, Classes and Traits

Key

Table of Contents

decode()  : string
Converts a hexadecimal key into its binary representation.
encode()  : string
Converts a binary key into its hexadecimal representation.
generate()  : string
Generates a key.
generateEncode()  : string
Generates a hex encoded key.

Methods

decode()

Converts a hexadecimal key into its binary representation.

public static decode(string $key) : string
Parameters
$key : string

Binary key

Tags
since
1.0.0
Return values
string

encode()

Converts a binary key into its hexadecimal representation.

public static encode(string $key) : string
Parameters
$key : string

Binary key

Tags
since
1.0.0
Return values
string

generate()

Generates a key.

public static generate([int $length = 32 ]) : string
Parameters
$length : int = 32

Key length

Tags
since
1.0.0
Return values
string

generateEncode()

Generates a hex encoded key.

public static generateEncode([int $length = 32 ]) : string
Parameters
$length : int = 32

Key length

Tags
since
1.0.0
Return values
string

Search results