Class Socialveo\Core\library\CryptoJsAes

InheritanceSocialveo\Core\library\CryptoJsAes

Class CryptoJsAes

Public Methods

Hide inherited methods

MethodDescriptionDefined By
cryptoJsAesDecrypt() Decrypt data from a CryptoJS json encoding string Socialveo\Core\library\CryptoJsAes
cryptoJsAesEncrypt() Encrypt value to a cryptojs compatiable json encoding string Socialveo\Core\library\CryptoJsAes

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
FORMAT_CONCAT 'concat' Socialveo\Core\library\CryptoJsAes
FORMAT_JSON 'json' Socialveo\Core\library\CryptoJsAes

Method Details

cryptoJsAesDecrypt() public static method

Decrypt data from a CryptoJS json encoding string

public static mixed cryptoJsAesDecrypt ( $passphrase, $crypted, $format self::FORMAT_JSON )
$passphrase string
$crypted string
$format string

[optional]

throws Exception
cryptoJsAesEncrypt() public static method

Encrypt value to a cryptojs compatiable json encoding string

public static string cryptoJsAesEncrypt ( $passphrase, $value, $format self::FORMAT_JSON )
$passphrase string
$value mixed
$format string

[optional]

throws Exception