PHP Interface ManaPHP\Security\CryptInterface

Mostrar archivo Open project: manaphp/manaphp

Public Methods

Method Description
decrypt ( string $text, string $key = null ) : string Decrypts a text
encrypt ( string $text, string $key = null ) : string Encrypts a text

Method Details

decrypt() public method

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

encrypt() public method

Encrypts a text
public encrypt ( string $text, string $key = null ) : string
$text string
$key string
return string