Exemplo n.º 1
0
 /// <summary>
 /// Decrypts the hex encoded.
 /// </summary>
 /// <param name="hexEncodedText">The hex encoded text.</param>
 /// <returns>clear text</returns>
 public string DecryptHexEncoded(string hexEncodedText)
 {
     byte[] hex = HexEncoding.GetBytes(hexEncodedText);
     return(RawDecrypt(hex));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Encrypts the hex encoded.
 /// </summary>
 /// <param name="clearText">The clear text.</param>
 /// <returns>Hex Encoded String</returns>
 public string EncryptHexEncoded(string clearText)
 {
     byte[] encryptedBytes = RawEncrypt(clearText);
     return(HexEncoding.ToString(encryptedBytes));
 }