• 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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!