PHP Интерфейс Phalcon\Legacy\CryptInterface

Interface for Phalcon\Legacy\Crypt
Показать файл Открыть проект

Открытые методы

Метод Описание
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