You are here
Home > Programming > EncryptValidate – My First NuGet Package

EncryptValidate – My First NuGet Package


NuGet is something that I’m sure all of you have used before. It is such fun in fact, that I decided to package and publish my own NuGet package. It’s nothing fancy, it’s just a simple encryption dll that will encrypt data, validate encrypted data, decrypt data (not the same as the one-way EncryptData() method) and lastly also generate a SecureString object for you.

The methods included are as follows:

  • EncryptData()
  • ValidateEncryptedData()
  • RijndaelEncrypt()
  • RijndaelDecrypt()
  • ConvertToSecureString()
  • ConvertToUnsecuredString()

As of this blog post, the latest version is version 1.3.0. To get it from NuGet, manage the NuGet packages for your solution and in the Browse tab, type Elysium.Crypt.EncryptValidate.


Usage of the dll is as below:

You will also find the latest usage of the code on the dedicated project page for the package. As always, any feedback or suggestions are welcome.

Dirk Strauss
Dirk is a Software Developer and Microsoft MVP from South Africa. He loves all things Technology and is slightly addicted to Twitter and Jimi Hendrix. Apart from writing code, he also enjoys writing human readable articles. "I love sharing knowledge and connecting with people from around the world. It's the diversity that makes life so beautiful." Dirk feels very strongly that pizza is simply not complete without Tabasco, that you can never have too much garlic, and that cooking the perfect steak is an art he has yet to master.