public override string EncodeBytes(byte[] input) { return(HexEncoding.EncodeBytes(input)); }
public override byte[] DecodeBytes(string input) { return(HexEncoding.DecodeBytes(input)); }
int ICryptoTransform.TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset) { return(_mode == CryptoStreamMode.Read ? HexEncoding.DecodeBytes(inputBuffer, inputOffset, inputCount, outputBuffer, outputOffset) : HexEncoding.EncodeBytes(inputBuffer, inputOffset, inputCount, outputBuffer, outputOffset)); }