04-06-20 10:00 AM
04-06-20 01:25 PM
04-06-20 06:35 PM
05-06-20 02:26 PM
Action: Generate Key Output: key, IV and store in Credential Management Using myAes As Aes = Aes.Create() key = Convert.ToBase64String(myAes.Key) IV = Convert.ToBase64String(myAes.IV) End Using ++++++++++++++++++++++++++++++++++++++++++++++++ Action: Encrypt Input: Key, IV,(from, Credential Management) plaintext Output: encrypted Using aesAlg As Aes = Aes.Create() aesAlg.Key = Key aesAlg.IV = IV Dim encryptor As ICryptoTransform = aesAlg.CreateEncryptor(aesAlg.Key, aesAlg.IV) Using msEncrypt As MemoryStream = New MemoryStream() Using csEncrypt As CryptoStream = New CryptoStream(msEncrypt, encryptor, CryptoStreamMode.Write) Using swEncrypt As StreamWriter = New StreamWriter(csEncrypt) swEncrypt.Write(plainText) End Using encrypted = msEncrypt.ToArray() End Using End Using End Using encrypted = Convert.ToBase64String(encrypted)
05-06-20 08:19 PM
15-06-20 06:27 PM