| 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
)
Public Shared Function EncryptStringToBytes (
text As String,
key As Byte(),
iv As Byte()
) As Byte()
public:
static array<unsigned char>^ EncryptStringToBytes(
String^ text,
array<unsigned char>^ key,
array<unsigned char>^ iv
)
static member EncryptStringToBytes :
text : string *
key : byte[] *
iv : byte[] -> byte[]
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:
ByteAn encrypted array of bytes, or an empty array of bytes if the string could not
be encrypted.
See Also