I am trying to create a class that will encode and decode a string using System.Security.Cryptography.RijndaelManaged (although I would be willing to use any methodology that is relatively secure). To perform the encoding, both the sender and reciever of the encrypted message must have access to a secret private key. There is a sample in the documentation that shows how to do this, but the sample encrypts and decrypts the message in the same procedure, and the code to decrypt the message uses the same variable referencing the key as the encrypting code does. Of course, in a real application this wouldn't occur (the reciever of the message might be on a tottally different machine). How and where should I store the private key? Do you just hard code it in to the code?...Wouldn't that be visible via ildasm.exe?