Android Question Hashing password through B4A

mr afiq turner

New Member
Hai im probably new here so how do i correct my hashing? msg always show red so i try assign as String
here my code

Dim password(0) As Byte
Dim md As MessageDigest
Dim Bconv As ByteConverter
Dim msg As String
msg = EditTextPassword.Text
password = Bconv.StringToBytes(msg, "UTF8")
password = md.GetMessageDigest(password, "SHA-1")
 

mr afiq turner

New Member
B4X:
Sub hashing
    Dim data(0) As Byte
    Dim md As MessageDigest
    Dim Bconv As ByteConverter
    Dim msg As String
    msg = EditTextPassword.Text
    data = Bconv.StringToBytes(msg, "UTF8")
    data = md.GetMessageDigest(data, "SHA-1")
End Sub
 
Upvote 0
Top