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. It is simple to use and it is compatible with B4J jB4XEncryption library and B4i Encryption library (Encrypt and Decrypt method) which means that you can encrypt the data on one platform and decrypt it on a...