WALTER | Workable Algorithms for Location-aware Transmission, Encryption Response

DeterministicEncryption..::..Encrypt Method (Span<(Of <(<'Byte>)>)>)

Encrypts the given span of bytes using deterministic AES encryption.

Namespace:  Walter.Cypher
Assembly:  Walter.Cypher (in Walter.Cypher.dll)

Syntax


public byte[] Encrypt(
	Span<byte> clearData
)

Parameters

clearData
Type: Span<(Of <(<'Byte>)>)>
The clear data to encrypt as a Span<byte>

Return Value

The encrypted data as a byte array.

Remarks


This method is optimized for large data sets and uses AES encryption in CBC mode with PKCS7 padding. The deterministic nature ensures consistent encrypted output for identical input.