public virtual string encrypt(String source) { if (!string.IsNullOrEmpty(bfKey)) { BlowfishEasy bfes = new BlowfishEasy(bfKey); return(bfes.EncryptString(source)); } else { return(source); } }
public virtual string localDecrypt(String source) { if (!string.IsNullOrEmpty(localKey)) { BlowfishEasy bfes = new BlowfishEasy(localKey); return bfes.DecryptString(source); } else { return source; } }