I know that I have to use System.Security.CreateEncryptor
but can someone plz give me an example?
Lets say I have a text file and I want to encrypt the data in the file by using a "key" for the enctyption. How can I do that?

I will appriciate if anyone can show a little example for me, I cant figure it out