Skip to content

alambrecht/EncryptionHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encryption Helper

A group of methods to assist with encryption

Add the following line to the App.config or web.config app settings for the salt

<add key="Salt" value="SALT VALUE HERE" />

Usage:

Create and MD5 hash salted with the user unique identifier and salt

var bytesOfHash = "Password".CreateMd5PasswordHash(userUniqueIdentifier);

Create a salted MD5 hash of a password

var bytesOfHash = "Password".CreateMd5Hash();

Encrypt URL data and URL Encode it

var encryptedString = "url data".EncryptUrl();

Decrypt URL data and URL Deccode it

var decryptedString = "encrypted data".DecryptUrl();

Encrypt data with a password

var bytesOfEncryptedData = "Decrypted data".Encrypt("password");

Decrypt data with a password

var bytesOfDecryptedData = "Encrypted data".Decrypt("password");

About

A library of methods to assist with encryption

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages