android - encoding/decoding on the B4a and vb.net -
i'm running following code in b4a
sub encrypt(datatoencrypt string) string dim su stringutils dim kg keygenerator dim c cipher dim md messagedigest dim encrypted() byte dim chashkey string ="1234" if chashkey.trim = "" return false kg.initialize("aes") kg.keyfrombytes(md.getmessagedigest(chashkey.getbytes("utf8"), "md5")) c.initialize("aes/ecb/pkcs7padding") encrypted = c.encrypt(datatoencrypt.getbytes("utf8"), chashkey.getbytes("utf8"), false) return su.encodebase64(encrypted) end sub
i'm going result sent web service... , want decode
is encrypted communication between web , mobile service
i searched found nothing in vb.net
Comments
Post a Comment