MLAPI/docs/M_MLAPI_NetworkingManagerComponents_CryptographyHelper_Encrypt.md
2018-03-31 10:20:18 +02:00

1.1 KiB

CryptographyHelper.Encrypt Method

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.NetworkingManagerComponents
Assembly: MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public static byte[] Encrypt(
	byte[] clearBuffer,
	byte[] key
)

Parameters

 

clearBuffer
Type: System.Byte[]
The buffer to be encrypted
key
Type: System.Byte[]
The key to use

Return Value

Type: Byte[]
The encrypted byte array with encoded salt

See Also

Reference

CryptographyHelper Class
MLAPI.NetworkingManagerComponents Namespace