Jul 12, 2016 Replies: 6 This is a wrap for this Github project. Author of this project is rishelarora I just wrote the wrapper to be able to use the Githubproject in B4A. AES256PasswordBasedEncryption-Decryption A library that lets you use the AES 256 password based encryption/decryption for your android application in the easiest manner. SecureMyText Author: Github rishelarora - DonManfred (wrapper) Version: 1 SecureMyText Methods: EncryptToFinalTransferText (str As String) As String Initialize (EventName As String, password As String) IsInitialized As Boolean decrypt (str As String) As String encrypt (str As String) As String Properties: IterationCount As Int [write only] Attachments SecureMyText.zip SecureMyText.zip 3.6 KB · Views: 1,140 Last edited: May 12, 2017 Click to expand...
This is a wrap for this Github project. Author of this project is rishelarora I just wrote the wrapper to be able to use the Githubproject in B4A. AES256PasswordBasedEncryption-Decryption A library that lets you use the AES 256 password based encryption/decryption for your android application in the easiest manner. SecureMyText Author: Github rishelarora - DonManfred (wrapper) Version: 1 SecureMyText Methods: EncryptToFinalTransferText (str As String) As String Initialize (EventName As String, password As String) IsInitialized As Boolean decrypt (str As String) As String encrypt (str As String) As String Properties: IterationCount As Int [write only]
davidt Member Licensed User Longtime User Jul 18, 2016 #3 Nice work on this library Don, but I am getting an error when I attempt to add to my project. I can confirm that the android-support-v4.jar resides in the c:\Program Files (x86)\Anywhere Software\Basic4Android\Libraries directory. Am I missing something else?
Nice work on this library Don, but I am getting an error when I attempt to add to my project. I can confirm that the android-support-v4.jar resides in the c:\Program Files (x86)\Anywhere Software\Basic4Android\Libraries directory. Am I missing something else?
DonManfred Expert Licensed User Longtime User Jul 18, 2016 #4 davidt said: Am I missing something else? Click to expand... The maven repository installed in SDK-Manager? See Setupinfo for B4A 6
davidt said: Am I missing something else? Click to expand... The maven repository installed in SDK-Manager? See Setupinfo for B4A 6
davidt Member Licensed User Longtime User Jul 18, 2016 #5 Thanks. Installing now. I had selected Android Support Library instead of Android Support Repository.
Thanks. Installing now. I had selected Android Support Library instead of Android Support Repository.
Reids Member Licensed User Longtime User Aug 8, 2016 #6 I got error while decrypting the text, encrypt work well but the decrypting is not working: Code: Copy ** Activity (main) Create, isFirst = true ** Error occurred on line: 85 (Main) java.lang.StringIndexOutOfBoundsException: length=25; regionStart=0; regionLength=-13 at java.lang.String.startEndAndLength(String.java:583) at java.lang.String.substring(String.java:1464) at rage.aes.secureencryptanddecrypt.SecureMyText.decrypt(SecureMyText.java:114) at de.donmanfred.SecureMyTextWrapper.decrypt(SecureMyTextWrapper.java:85) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:703) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:337) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134) My Code : Code: Copy secure.Initialize("secure","testing") Dim wew As String=secure.encrypt("TESTING") ToastMessageShow(wew,True) Dim buset As String=secure.decrypt(wew) ToastMessageShow(buset,True) More question, the encrypted string didn't have fixed value? it always changed on every encrypt process
I got error while decrypting the text, encrypt work well but the decrypting is not working: Code: Copy ** Activity (main) Create, isFirst = true ** Error occurred on line: 85 (Main) java.lang.StringIndexOutOfBoundsException: length=25; regionStart=0; regionLength=-13 at java.lang.String.startEndAndLength(String.java:583) at java.lang.String.substring(String.java:1464) at rage.aes.secureencryptanddecrypt.SecureMyText.decrypt(SecureMyText.java:114) at de.donmanfred.SecureMyTextWrapper.decrypt(SecureMyTextWrapper.java:85) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:703) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:337) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134) My Code : Code: Copy secure.Initialize("secure","testing") Dim wew As String=secure.encrypt("TESTING") ToastMessageShow(wew,True) Dim buset As String=secure.decrypt(wew) ToastMessageShow(buset,True) More question, the encrypted string didn't have fixed value? it always changed on every encrypt process
DonManfred Expert Licensed User Longtime User Aug 11, 2016 #7 Reids said: I got error while decrypting the text, encrypt work well but the decrypting is not working: Click to expand... have you tried to use EncryptToFinalTransferText to encrypt? The decrypt method seems to be based on this output as you can see in github project...
Reids said: I got error while decrypting the text, encrypt work well but the decrypting is not working: Click to expand... have you tried to use EncryptToFinalTransferText to encrypt? The decrypt method seems to be based on this output as you can see in github project...