EncryptIt

Simple reversible encryption of text to a hex format that can be used safely in IniFiles and Registry.

Example usage (encryption):

  
  using (EncryptIt ei = new EncryptIt(new SaltAndKeys(1,2,3)))
  {
    return ei.Decrypt("your encrypted text here");
  }

Example usage (decryption):

  
  using (EncryptIt ei = new EncryptIt(new SaltAndKeys(1,2,3)))
  {
    return ei.Encrypt("your uncrypted text here");
  }

Note that the default SaltAndKeys has salt and private keys values of 0 which must be changed before the library will work. The three values should (off-course) be the same for both encryption and decreption calls.

It is up to the user to make sure the three values are safely hidden in the application. Because of this the library isn't 100% safe but good enough to keep people from changing things when it's used in IniFile for example.

Last edited Dec 3, 2009 at 10:45 AM by wvd_vegt, version 3

Comments

No comments yet.