Click or drag to resize
Galactic API

AES256EncryptStringToBytes Method

Encrypts a string of text to an array of AES 256 encrypted bytes.

Namespace:  Galactic.Cryptography
Assembly:  Galactic.Cryptography (in Galactic.Cryptography.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public static byte[] EncryptStringToBytes(
	string text,
	byte[] key,
	byte[] iv
)

Parameters

text
Type: SystemString
The text to encrypt.
key
Type: SystemByte
The key used by the encryption algorithm.
iv
Type: SystemByte
The initialization vector used by the encryption algorithm.

Return Value

Type: Byte
An encrypted array of bytes, or an empty array of bytes if the string could not be encrypted.
See Also