well, my simple copy paste of your class, and a button to call it returns an error form vb.net;
All i wanted was a string and it's encrypted value, with a certain passphrase, so i could test DES and DES Triple to see if it's the same algrythm, but you poasted code.
Specified key is not a valid size for this algorithm.
Invalid character in a Base-64 string.
I did what i could with your code, but it doesn't work for me.
Private Sub btnTestEncryption_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTestEncryption.Click
Dim s As String = "Encryption Test"
Dim p As String = "Secret Password"
Dim r As String = EncryptDecrypt.Encrypt(s, p)
Debug.Print(r)
Dim t As String = EncryptDecrypt.Decrypt(r, p)
Debug.Print(t)
MsgBox("Done.")
End Sub
Lowell