你好,
我正在为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