public function isEncryptedContainer($encrypted, $key)
    {
        try
        {
            $data = JWT::decode($encrypted, $key);
        }
        catch(Exception $e)
        {
            return false;
        }

        return $this->isJson($data->container);
    }
public function isEncryptedContainer($encrypted, $key)
    {
        try
        {
            $data = JWT::decode($encrypted, $key);
        }
        catch(Exception $e)
        {
            return false;
        }

        return $this->isJson($data->container);
    }
public function isEncryptedContainer ( $ encrypted , $ key ) { try { $ data = JWT :: decode ( $ encrypted , $ key ) ; } catch ( Exception $ e ) { return false ; } return $ this -> isJson ( $ data -> container ) ; }
Check if string is encrypted Container

@param string $encrypted
@param string $key
@return bool
Check if string is encrypted Container