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

EncryptValidate Code Encryption – My First NuGet Package

EncryptValidate Code Encryption

EncryptValidate Code Encryption – NuGet is something that I’m sure all of you have used before. 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. It also validates encrypted data. Among the other methods, it decrypts data (not the same as the one-way EncryptData() method) and lastly also generates a SecureString object for you.

EncryptValidate Code Encryption

The methods included are as follows:

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

If you were looking for something else, try these links instead:

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. 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.

Why must I adopt an encryption strategy?

According to Wikipedia, the list of data breaches include:

  • Facebook – 2018 – 50 million records breached due to poor security
  • Ticketfly – 2018 – 26 million records hacked
  • Google Plus – 2018 – 500k records breached due to poor security. Google subsequently closed down Google Plus.
  • Yahoo – 2014 – 500 million records hacked (again)
  • Yahoo – 2013 – 3 billion records hacked
  • Adobe Systems – 2013 – 152 million records hacked
  • Facebook – 2013 – 6 million records accidentally published

The list goes on and on. One thing you should realise, is that your data is never secure. No matter where it is. It is prudent to encrypt sensitive information. You must employ the best security practices in your code base. Start by giving EncryptValidate Code Encryption NuGet package a try.

Dirk Strauss
Dirk is a Software Developer from South Africa. He loves all things Technology and is slightly addicted to Jimi Hendrix. Apart from writing code, he also enjoys authoring books and 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 almost mastered.

Similar Articles