Skip to main content

Module Key

Module Key 

Source
Expand description

Machine-stable 256-bit key derivation for AES-256-GCM.

The key is derived once per process from the hostโ€™s hardware UUID using SHA-256: key = SHA-256("Land-Encryption-v1" ++ machine_id).

If the machine ID cannot be obtained on this system, DeriveKey returns Err so callers can surface a meaningful error rather than silently falling back to a constant key that is identical on every affected machine.

Staticsยง

DERIVED_KEY ๐Ÿ”’

Functionsยง

ComputeKey ๐Ÿ”’
Fn
Returns the process-wide 256-bit encryption key.
ReadMachineId ๐Ÿ”’