使用QT进行AES/ECB/PKCS5Padding解密

3

你好,

我正在为QT Mobile Symbian^3设备开发一个应用程序。我需要解密一个使用AES、ECB和PKCS5填充加密的消息。 以下是解密该消息的Java代码:

 public static byte[] decrypt(byte[] raw, byte[] encrypted) throws Exception {


        SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES");
        Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
        cipher.init(Cipher.DECRYPT_MODE, skeySpec);
        return cipher.doFinal(encrypted);
    }

你知道QT Symbian的解决方案吗?

祝好, Bogdan

1个回答

1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接