Note that there are some explanatory texts on larger screens.

plurals
  1. PONoSuchProviderException when encrypting string with 3DES
    text
    copied!<p>I am new to Java. I followed this <a href="http://ttux.net/post/3des-java-encrypter-des-java-encryption/" rel="nofollow">tutorial</a> about Encryption and Decryption using 3DES algorithm.</p> <p>I have implemented like this:</p> <ol> <li>Created a class and placed the 3DES code provided in the above link.</li> <li><p>Called the encrypt method in the above link as below:</p> <pre><code>String encryptedPassword = Encrypter.encrypt(edtText.getText().toString()); </code></pre></li> </ol> <p>I am getting the exception in logcat as below:</p> <pre><code> 05-02 15:19:10.804: W/System.err(4445): java.security.NoSuchProviderException: Provider not available: SunJCE 05-02 15:19:10.820: W/System.err(4445): at javax.crypto.Cipher.getInstance(Cipher.java:209) 05-02 15:19:10.820: W/System.err(4445): at com.example.utilities.Encrypter.encrypt(Encrypter.java:46) 05-02 15:19:10.820: W/System.err(4445): at com.example.screens.RegisterScreen.onClick(RegisterScreen.java:152) 05-02 15:19:10.820: W/System.err(4445): at android.view.View.performClick(View.java:2485) 05-02 15:19:10.820: W/System.err(4445): at android.view.View$PerformClick.run(View.java:9080) 05-02 15:19:10.828: W/System.err(4445): at android.os.Handler.handleCallback(Handler.java:587) 05-02 15:19:10.828: W/System.err(4445): at android.os.Handler.dispatchMessage(Handler.java:92) 05-02 15:19:10.828: W/System.err(4445): at android.os.Looper.loop(Looper.java:130) 05-02 15:19:10.828: W/System.err(4445): at android.app.ActivityThread.main(ActivityThread.java:3687) 05-02 15:19:10.835: W/System.err(4445): at java.lang.reflect.Method.invokeNative(Native Method) 05-02 15:19:10.835: W/System.err(4445): at java.lang.reflect.Method.invoke(Method.java:507) 05-02 15:19:10.835: W/System.err(4445): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) 05-02 15:19:10.835: W/System.err(4445): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) 05-02 15:19:10.835: W/System.err(4445): at dalvik.system.NativeStart.main(Native Method) </code></pre> <p>Please help me. How to solve this....</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload