PHP 인터페이스 Phalcon\Legacy\CryptInterface

Interface for Phalcon\Legacy\Crypt
파일 보기 프로젝트 열기: phalcon/incubator

공개 메소드들

메소드 설명
decrypt ( string $text, string $key = null ) : string Decrypts a text
decryptBase64 ( string $text, mixed $key = null ) : string Decrypt a text that is coded as a base64 string
encrypt ( string $text, mixed $key = null ) : string Encrypts a text
encryptBase64 ( string $text, mixed $key = null ) : string Encrypts a text returning the result as a base64 string
getAvailableCiphers ( ) : array Returns a list of available cyphers
getAvailableModes ( ) : array Returns a list of available modes
getCipher ( ) : string Returns the current cipher
getKey ( ) : string Returns the encryption key
getMode ( ) : string Returns the current encryption mode
setCipher ( string $cipher ) : Phalcon\Legacy\CryptInterface Sets the cipher algorithm
setKey ( string $key ) : Phalcon\Legacy\CryptInterface Sets the encryption key
setMode ( string $mode ) : Phalcon\Legacy\CryptInterface Sets the encrypt/decrypt mode

메소드 상세

decrypt() 공개 메소드

Decrypts a text
public decrypt ( string $text, string $key = null ) : string
$text string
$key string
리턴 string

decryptBase64() 공개 메소드

Decrypt a text that is coded as a base64 string
public decryptBase64 ( string $text, mixed $key = null ) : string
$text string
$key mixed
리턴 string

encrypt() 공개 메소드

Encrypts a text
public encrypt ( string $text, mixed $key = null ) : string
$text string
$key mixed
리턴 string

encryptBase64() 공개 메소드

Encrypts a text returning the result as a base64 string
public encryptBase64 ( string $text, mixed $key = null ) : string
$text string
$key mixed
리턴 string

getAvailableCiphers() 공개 메소드

Returns a list of available cyphers
public getAvailableCiphers ( ) : array
리턴 array

getAvailableModes() 공개 메소드

Returns a list of available modes
public getAvailableModes ( ) : array
리턴 array

getCipher() 공개 메소드

Returns the current cipher
public getCipher ( ) : string
리턴 string

getKey() 공개 메소드

Returns the encryption key
public getKey ( ) : string
리턴 string

getMode() 공개 메소드

Returns the current encryption mode
public getMode ( ) : string
리턴 string

setCipher() 공개 메소드

Sets the cipher algorithm
public setCipher ( string $cipher ) : Phalcon\Legacy\CryptInterface
$cipher string
리턴 Phalcon\Legacy\CryptInterface

setKey() 공개 메소드

Sets the encryption key
public setKey ( string $key ) : Phalcon\Legacy\CryptInterface
$key string
리턴 Phalcon\Legacy\CryptInterface

setMode() 공개 메소드

Sets the encrypt/decrypt mode
public setMode ( string $mode ) : Phalcon\Legacy\CryptInterface
$mode string
리턴 Phalcon\Legacy\CryptInterface