src/CryptTrait.php
protected function decrypt($encryptedData)
    {
        try {
            if ($this->encryptionKey instanceof Key) {
                return Crypto::decrypt($encryptedData, $this->encryptionKey);
            }

            return Crypto::decryptWithPassword($encryptedData, $this->encryptionKey);
        } catch (Exception $e) {
            throw new LogicException($e->getMessage(), null, $e);
        }
    }
protected function decrypt($encryptedData)
    {
        try {
            if ($this->encryptionKey instanceof Key) {
                return Crypto::decrypt($encryptedData, $this->encryptionKey);
            }

            return Crypto::decryptWithPassword($encryptedData, $this->encryptionKey);
        } catch (Exception $e) {
            throw new LogicException($e->getMessage(), null, $e);
        }
    }
protected function decrypt ( $ encryptedData ) { try { if ( $ this -> encryptionKey instanceof Key ) { return Crypto :: decrypt ( $ encryptedData , $ this -> encryptionKey ) ; } return Crypto :: decryptWithPassword ( $ encryptedData , $ this -> encryptionKey ) ; } catch ( Exception $ e ) { throw new LogicException ( $ e -> getMessage ( ) , null , $ e ) ; } }
Decrypt data with encryptionKey.

@param string $encryptedData

@throws LogicException

@return string
Decrypt data with encryptionKey .