PHP 클래스 ParagonIE\Halite\Halite

파일 보기 프로젝트 열기: paragonie/halite 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
__construct ( ) Don't allow this to be instantiated.

메소드 상세

chooseEncoder() 공개 정적인 메소드

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

isLibsodiumSetupCorrectly() 공개 정적인 메소드

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
리턴 boolean