PHP 클래스 Cml\Encry

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

공개 메소드들

메소드 설명
decrypt ( string $data, string $key = null ) : mixed 解密方法
encrypt ( string $data, string $key = null ) : mixed 加密方法

비공개 메소드들

메소드 설명
createKey ( string $key ) : void 生成加密KEY
cry ( string $string, integer $type, string $key ) : mixed 位加密或解密

메소드 상세

decrypt() 공개 정적인 메소드

解密方法
public static decrypt ( string $data, string $key = null ) : mixed
$data string 解密字符串
$key string 密钥
리턴 mixed

encrypt() 공개 정적인 메소드

加密方法
public static encrypt ( string $data, string $key = null ) : mixed
$data string 加密字符串
$key string 密钥
리턴 mixed