Constants

SALTING_MODE_NONE

SALTING_MODE_NONE

The mode to disable salting.

SALTING_MODE_APPEND

SALTING_MODE_APPEND

The mode to append the salt string (after the data).

SALTING_MODE_PREPEND

SALTING_MODE_PREPEND

The mode to prepend the salt string (before the data).

SALTING_MODE_INFIX_INPUT

SALTING_MODE_INFIX_INPUT

The mode to infix the salt string (around the data).

SALTING_MODE_INFIX_SALT

SALTING_MODE_INFIX_SALT

The mode to infix the data string (around the salt).

SALTING_MODE_REVERSE_APPEND

SALTING_MODE_REVERSE_APPEND

The mode to reverse and append the salt string (after the data).

SALTING_MODE_REVERSE_PREPEND

SALTING_MODE_REVERSE_PREPEND

The mode to reverse and prepend the salt string (before the data).

SALTING_MODE_DUPLICATE_SUFFIX

SALTING_MODE_DUPLICATE_SUFFIX

The mode to create a suffix via reversing the salt string and concatenating it to its original value.

SALTING_MODE_DUPLICATE_PREFIX

SALTING_MODE_DUPLICATE_PREFIX

The mode to create a prefix via reversing the salt string and concatenating it to its original value.

SALTING_MODE_PALINDROME_MIRRORING

SALTING_MODE_PALINDROME_MIRRORING

The mode to use the salting string and the input data to create a palindrome string.

Methods

setSalt()

setSalt(string  $salt) 

Setter for the salt string property.

Parameters

string $salt

The salt string.

Throws

\Exception

Validation errors.

getSalt()

getSalt() : string

Getter for the salt string property.

Returns

string —

The salt string.

setSaltingMode()

setSaltingMode(integer  $saltingMode) 

Setter for the salting mode code property.

Parameters

integer $saltingMode

The salting mode code.

Throws

\Exception

Validation errors.

getSaltingMode()

getSaltingMode() : integer

Getter for the salt mode code property.

Returns

integer —

The salt mode code.