PHP Class Yab\Quarx\Services\CryptoService

Mostrar archivo Open project: YABhq/Quarx Class Usage Examples

Protected Properties

Property Type Description
$encoding string The encoding.
$length interger Length of the hash to be returned.
$password string Encrypted Key.
$specialCharactersForward array Bad URL characters.
$specialCharactersReversed array Bad URL characters.

Public Methods

Method Description
__construct ( ) Construct the Encrypter with the fields.
decrypt ( string $value ) : string Decrypt a string.
encrypt ( string $value ) : string Encrypt the string using your app and session keys, then return the new encrypted string.
url_decode ( $string ) : string Decode the string to be used as a url slug.
url_encode ( $string ) : string Encode the string to be used as a url slug.

Protected Methods

Method Description
url_base64_decode ( string $string ) : string Base 64 decode.
url_base64_encode ( string $string ) : string Base 64 encode.

Method Details

__construct() public method

Construct the Encrypter with the fields.
public __construct ( )

decrypt() public method

Decrypt a string.
public decrypt ( string $value ) : string
$value string Encrypted string
return string

encrypt() public method

Encrypt the string using your app and session keys, then return the new encrypted string.
public encrypt ( string $value ) : string
$value string String to encrypt
return string

url_base64_decode() protected method

Base 64 decode.
protected url_base64_decode ( string $string ) : string
$string string String to decode
return string

url_base64_encode() protected method

Base 64 encode.
protected url_base64_encode ( string $string ) : string
$string string String to encode
return string

url_decode() public method

Decode the string to be used as a url slug.
public url_decode ( $string ) : string
return string

url_encode() public method

Encode the string to be used as a url slug.
public url_encode ( $string ) : string
return string

Property Details

$encoding protected_oe property

The encoding.
protected string $encoding
return string

$length protected_oe property

Length of the hash to be returned.
protected interger $length
return interger

$password protected_oe property

Encrypted Key.
protected string $password
return string

$specialCharactersForward protected_oe property

Bad URL characters.
protected array $specialCharactersForward
return array

$specialCharactersReversed protected_oe property

Bad URL characters.
protected array $specialCharactersReversed
return array