Sub AES_Decrypt(input As String, IV As String, pass As String) As String
Dim inputB() As Byte = Str2Byte(input)
Dim passB() As Byte = Str2Byte(pass)
Dim IVb() As Byte = Str2Byte(IV)
Dim kg As KeyGenerator
Dim C As Cipher
kg.Initialize("AES")
kg.KeyFromBytes(passB)
C.Initialize("AES/CBC/PKCS7Padding")
C.InitialisationVector = IVb
Dim datas() As Byte = C.Decrypt(inputb, kg.Key, True)
Return BytesToString(datas, 0, datas.Length, "UTF8")
End Sub