PHP Class ParagonIE\Halite\Halite

Datei anzeigen Open project: paragonie/halite Class Usage Examples

Public Methods

Method Description
chooseEncoder ( mixed $chosen, boolean $decode = false ) : callable Select which encoding/decoding function to use.
isLibsodiumSetupCorrectly ( boolean $echo = false ) : boolean Is Libsodium set up correctly? Use this to verify that you can use the newer versions of Halite correctly.

Private Methods

Method Description
__construct ( ) Don't allow this to be instantiated.

Method Details

chooseEncoder() public static method

Select which encoding/decoding function to use.
public static chooseEncoder ( mixed $chosen, boolean $decode = false ) : callable
$chosen mixed
$decode boolean
return callable (array or string)

isLibsodiumSetupCorrectly() public static method

Is Libsodium set up correctly? Use this to verify that you can use the newer versions of Halite correctly.
public static isLibsodiumSetupCorrectly ( boolean $echo = false ) : boolean
$echo boolean
return boolean