Click or drag to resize

CryptographyHelperEncryptStream Method

[This is preliminary documentation and is subject to change.]

Encrypts a message with AES with a given key and a random salt that gets encoded as the first 16 bytes of the encrypted buffer

Namespace:  MLAPI.Cryptography
Assembly:  MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static Stream EncryptStream(
	Stream clearStream,
	uint clientId
)
Request Example View Source

Parameters

clearStream
Type: System.IOStream
The stream to be encrypted
clientId
Type: SystemUInt32
The clientId whose AES key to use

Return Value

Type: Stream
The encrypted stream with encoded salt
See Also