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