Android Question [Solved] MD5 - Library Encryption

Discussion in 'Android Questions' started by Bladimir Silva Toro, Nov 14, 2018.

Tags:
  1. Bladimir Silva Toro

    Bladimir Silva Toro Member Licensed User

    I need to convert an MD5, I use the following code:

    Code:
    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.
     
  2. DonManfred

    DonManfred Expert Licensed User

  3. Erel

    Erel Administrator Staff Member Licensed User

  4. Bladimir Silva Toro

    Bladimir Silva Toro Member Licensed User

    thank you @DonManfred

    It works perfectly, I just need to see the MD5 as decrypted.

    Any help you can give me?
     
  5. DonManfred

    DonManfred Expert Licensed User

    1. Create a new thread for any new question.
    2. MD5 is not a Encrypted text (it is a Checksum). What do you want to decrypt?
     
  6. Bladimir Silva Toro

    Bladimir Silva Toro Member Licensed 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?
     
  7. DonManfred

    DonManfred Expert Licensed User

    In Windows i am using Delphi. Not sure which component i use.
    But the routine in Delphi gives me the same MD5 for a file i generated the MD5 in Adroid for.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice