[英]java.security.NoSuchAlgorithmException: AES/ECB/PKCS5Padding
I am developing an android application in which it is necessary to decrypt the file. 我正在开发一个需要解密文件的android应用程序。 I specify an algorithm as follows:
我指定一种算法,如下所示:
Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding", "Crypto");
But get the error: 但是得到错误:
java.security.NoSuchAlgorithmException: AES/ECB/PKCS5Padding
java.security.NoSuchAlgorithmException:AES / ECB / PKCS5Padding
What is my mistake? 我怎么了
Thanks. 谢谢。
Try and use 尝试使用
Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
If you don't specify the provider, it will look for the highest prioritized provider that does implement it. 如果您不指定提供程序,它将寻找实现它的优先级最高的提供程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.