public override string EncodeBytes(byte[] input)
 {
     return(HexEncoding.EncodeBytes(input));
 }
Пример #2
0
 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));
 }