public function decryptObject(string $encrypted, string $key = null): object
    {
        return \json_decode($this->decrypt($encrypted, $key), true);
    }
public function decryptObject(string $encrypted, string $key = null): object
    {
        return \json_decode($this->decrypt($encrypted, $key), true);
    }
public function decryptObject ( string $ encrypted , string $ key = null ) : object { return \ json_decode ( $ this -> decrypt ( $ encrypted , $ key ) , true ) ; }
Decrypt a message originally encrypted from an object.

@param string $encrypted The encrypted message
@param string $key       The encryption key

@throws CryptException On any failure

@return object
Decrypt a message originally encrypted from an object .