src/Common/Service/Encrypt.php
public static function decode($sCipher, $sSalt = '')
    {
        try {
            return Crypto::decryptWithPassword(
                $sCipher,
                static::getKey($sSalt)
            );
        } catch (EnvironmentIsBrokenException $e) {
            throw new EnvironmentException(
                $e->getMessage(),
                $e->getCode()
            );
        } catch (WrongKeyOrModifiedCiphertextException $e) {
            throw new DecodeException(
                $e->getMessage(),
                $e->getCode()
            );
        }
    }
public static function decode($sCipher, $sSalt = '')
    {
        try {
            return Crypto::decryptWithPassword(
                $sCipher,
                static::getKey($sSalt)
            );
        } catch (EnvironmentIsBrokenException $e) {
            throw new EnvironmentException(
                $e->getMessage(),
                $e->getCode()
            );
        } catch (WrongKeyOrModifiedCiphertextException $e) {
            throw new DecodeException(
                $e->getMessage(),
                $e->getCode()
            );
        }
    }
public static function decode ( $ sCipher , $ sSalt = '' ) { try { return Crypto :: decryptWithPassword ( $ sCipher , static :: getKey ( $ sSalt ) ) ; } catch ( EnvironmentIsBrokenException $ e ) { throw new EnvironmentException ( $ e -> getMessage ( ) , $ e -> getCode ( ) ) ; } catch ( WrongKeyOrModifiedCiphertextException $ e ) { throw new DecodeException ( $ e -> getMessage ( ) , $ e -> getCode ( ) ) ; } }
Decodes a given value using the supplied key

@param  mixed  $sCipher The value to decode
@param  string $sSalt   The salt to add to the key

@throws EnvironmentException
@throws DecodeException
@return string
Decodes a given value using the supplied key