[英]J2ME App Selectively Working on Some Phones
I'm currently working on a j2me app. 我目前正在开发j2me应用程序。 The app encrypts(using DES) and sends username and password to a server which then decrypts and authenticates the supplied credentials.
该应用程序加密(使用DES),并将用户名和密码发送到服务器,然后服务器解密并验证提供的凭据。 Tested it on a Nokia E63 and it worked well, but failed to work on some other phones that I tested it on like Bold 5 and LG C199.
在诺基亚E63上对其进行了测试,效果很好,但是在其他我测试过的手机(如Bold 5和LG C199)上却无法正常工作。 I tried debugging and found out that the program fails at the point where it instantiates the class responsible for the encryption.
我尝试调试,发现程序在实例化负责加密的类时失败。 Does anyone know how I can work around this?
有人知道我该如何解决吗? Also is there anyway I can write a DES encryption without using the javax.crypto.Cipher class?
无论如何,是否可以不使用javax.crypto.Cipher类编写DES加密?
这些电话的某些jvm可能没有该类,请尝试在您的应用程序中显式添加该类
The bouncycastle lightweight crypto API comes in a j2me version . bouncycastle轻量级加密API带有j2me版本 。 Be sure to read the FAQ about running an obfuscator on your j2me thingy (I don't know squat about j2me so you'll have to fill in the blanks).
请务必阅读有关在j2me上运行混淆器的常见问题解答(我不了解j2me,因此您必须填写空白)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.