Esempio n. 1
0
    public void performDES(string text)
    {
        DES myDes = DES.Create();

        // Encrypt the string to an array of bytes
        encrypted = DES_Class.EncryptStringToBytes_Des(text, myDes.Key, myDes.IV);
        // Decrypt the bytes to a string.
        roundtrip = DES_Class.DecryptStringFromBytes_Des(encrypted, myDes.Key, myDes.IV);
    }