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

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -