EncryptString |
private string EnryptString (string strEncrypted) {
byte[] b = System.Text.ASCIIEncoding.ASCII.GetBytes(strEncrypted); string encryptedConnectionString = Convert.ToBase64String(b); return encryptedConnectionString;
} |
DecryptString |
private string DecryptString (string encrString) {
byte[] b = Convert.FromBase64String(encrString);
string decryptedConnectionString = System.Text.ASCIIEncoding.ASCII.GetString(b);
return decryptedConnectionString;
} |
No comments:
Post a Comment