Android Question [Solved] MD5 - Library Encryption

Bladimir Silva Toro

Active Member
Licensed User
Longtime User
I need to convert an MD5, I use the following code:

B4X:
Dim md As MessageDigest
Dim ByteCon As ByteConverter
Dim passwordhash() As Byte

passwordhash = md.GetMessageDigest(p.GetBytes("UTF8"),"MD5")

dim md5string as String

md5string = ByteCon.HexFromBytes(passwordhash)

msgbox(md5string,"This is the MD5")

For this it is necessary to use the libraries ByteConverter - Encryption, the library Encryption does not exist, I get an error when I use MessageDigest, the only library that appears is B4XEncryption.

Where can I download the Encryption library?

Thank you so much.
 

Bladimir Silva Toro

Active Member
Licensed User
Longtime User
I just wanted to test if the Checksum that I generate with the one I have stored in the database is the same.

How do I verify that?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…