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

1.1 KiB

CryptographyHelper.Decrypt Method

Decrypts a message with AES with a given key and a salt that is encoded as the first 16 bytes of the buffer

Namespace: MLAPI.NetworkingManagerComponents
Assembly: MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public static byte[] Decrypt(
	byte[] encryptedBuffer,
	byte[] key
)

Parameters

 

encryptedBuffer
Type: System.Byte[]
The buffer with the salt
key
Type: System.Byte[]
The key to use

Return Value

Type: Byte[]
The decrypted byte array

See Also

Reference

CryptographyHelper Class
MLAPI.NetworkingManagerComponents Namespace