Name
CryptoStream
Synopsis
public class CryptoStream : System.IO.Stream { // Public Constructors public CryptoStream(System.IO.Streamstream
, ICryptoTransformtransform
, CryptoStreamModemode
); // Public Instance Properties public override bool CanRead{get; // overrides System.IO.Stream public override bool CanSeek{get; // overrides System.IO.Stream public override bool CanWrite{get; // overrides System.IO.Stream public override long Length{get; // overrides System.IO.Stream public override long Position{set; get; // overrides System.IO.Stream // Public Instance Methods public void Clear( ); public override void Close( ); // overrides System.IO.Stream public override void Flush( ); // overrides System.IO.Stream public void FlushFinalBlock( ); public override int Read(in byte[ ]buffer
, intoffset
, intcount
); // overrides System.IO.Stream public override long Seek(longoffset
, System.IO.SeekOriginorigin
); // overrides System.IO.Stream public override void SetLength(longvalue
); // overrides System.IO.Stream public override void Write(byte[ ]buffer
, intoffset
, intcount
); // overrides System.IO.Stream // Protected Instance Methods protected virtual void Dispose(booldisposing
); protected override void Finalize( ); // overrides object }
The CryptoStream
class provides a stream-based
model for encrypting and decrypting data using symmetric algorithms.
The class constructor accepts an instance of
System.IO.Stream
, an implementation of the
ICryptoTransform
interface, and a value ...
Get Programming .NET Security now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.