/// <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)); }
/// <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)); }