Encryption error with "é, ê, ô, .."

Fabrice La

Active Member
Licensed User
Longtime User
When I am using this application I have error with words like
Péage
Hôtel
échange
Seems that words with accents not working. Any chance to work ?


The error is :
At line "data = c.Encrypt(data, Kg.key, False)"
javax.crypto.IllegalBlockSizeException: data not block size aligned
at org.bouncycastle.jce.provider.JCEBlockCipher.engineDoFinal(JCEBlockCipher.java:649)
at javax.crypto.Cipher.doFinal(Cipher.java:1116)
at anywheresoftware.b4a.agraham.encryption.CipherWrapper.doFinal(CipherWrapper.java:140)
at anywheresoftware.b4a.agraham.encryption.CipherWrapper.Encrypt(CipherWrapper.java:160)
at toto.ADFAndroidV3.cacher._getcache(cacher.java:94)
at toto.ADFAndroidV3.fajouter._btnajouter_click(fajouter.java:1064)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:136)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:124)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:120)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:49)
at android.view.View.performClick(View.java:2408)
at android.view.View$PerformClick.run(View.java:8816)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
javax.crypto.IllegalBlockSizeException: data not block size aligned
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…