IPCrypt2.ndEncryptIPStr

Non-deterministic encryption of an IP address string.

struct IPCrypt2
nothrow @safe
size_t
ndEncryptIPStr
(
scope char[] output
,
scope const(char)[] ipStr
,
scope const(ubyte)[] random
)

Parameters

output char[]

Buffer to store the encrypted IP string (must be at least IPCRYPT_NDIP_STR_BYTES).

ipStr const(char)[]

The IP address string to encrypt.

random const(ubyte)[]

8-byte random data for non-determinism.

Return Value

Type: size_t

The length of the encrypted IP string, or 0 on error.

Meta