Hi everybody !!!
I am trying to encrypt some text in order to store it in SQLite database as a password, for further login validations.
But everytime i call this code, i get a different encrypted output text, using the same value as input.
My code to encrypt:
Sub Encriptar(iCadena As String) As String
Dim cifro As B4XCipher
Dim su As StringUtils
Dim b() As Byte = cifro.Encrypt(iCadena.GetBytes("utf8"), "xxxxx")
Return su.EncodeBase64(b)
End Sub
This library works with both B4A and B4J. Yes yes yes there are other ways to do this, this is how I do it. I have lots of small libraries that I use for myself, so I thought that I would share this one with the community. Hello fellow B4X'ers, I've decided to release this simple to use AES...
True. This is because it uses a random salt and random initialization vector. Both are saved together with the encrypted data. It is more secure like this.
This library allows you to encrypt or decrypt data using the AES encryption method. To prevent confusion, B4XEncryptino is not a b4xlib and is made of three platform specific libraries: B4XEncryption - B4A jB4XEncryption - B4J iEncryption - B4i (Encrypt and Decrypt methods) It is simple to use...