PHP 클래스 Dcrypt\Rc4

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

공개 메소드들

메소드 설명
crypt ( string $str, string $key ) : string Perform (en/de)cryption

보호된 메소드들

메소드 설명
initializeState ( string $key ) : array Create the initial byte matrix that will be used for swaps. This code is identical between RC4 and Spritz.

메소드 상세

crypt() 공개 정적인 메소드

Perform (en/de)cryption
public static crypt ( string $str, string $key ) : string
$str string String to be encrypted
$key string Key to use for encryption
리턴 string

initializeState() 보호된 정적인 메소드

Create the initial byte matrix that will be used for swaps. This code is identical between RC4 and Spritz.
protected static initializeState ( string $key ) : array
$key string
리턴 array