/// <summary> /// PipeClientOnDecrypt method implementation /// </summary> private string PipeClientOnDecrypt(string cryptedvalue) { byte[] byt = DefaultEncrypt.XOREncryptOrDecrypt(System.Convert.FromBase64String(cryptedvalue), Proofkey); return(System.Text.Encoding.UTF8.GetString(byt)); }
/// <summary> /// PipeClientOnEncrypt method implementation /// </summary> private string PipeClientOnEncrypt(string clearvalue) { byte[] byt = DefaultEncrypt.XOREncryptOrDecrypt(System.Text.Encoding.UTF8.GetBytes(clearvalue), Proofkey); return(System.Convert.ToBase64String(byt)); }