Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineKeys ¶ added in v0.21.1
CombineKeys takes a private key, a public key, and an AES seed, and combines them into a single string, separating each with a newline.
Parameters: - privateKey: The X25519 private key as a string. - publicKey: The X25519 public key as a string. - aesSeed: The AES seed for symmetric encryption as a string.
Returns:
- A single string containing the private key, public key, and AES seed, each separated by a newline.
func GenerateKeys ¶ added in v0.21.1
GenerateKeys generates a pair of X25519 keys for public key encryption using the age library, as well as an AES seed for symmetric encryption.
Returns: - publicKey: The X25519 public key as a string. - privateKey: The X25519 private key as a string. - aesSeed: A generated AES seed for symmetric encryption. - error: An error object if any step in the process fails.
func RandomString ¶
RandomString generates a cryptographically-unique secure random string.
Types ¶
This section is empty.