GLDF Sign is a Rust-based tool for signing and verifying GLDF (General Lighting
Data Format) files. Leveraging the cryptographic strength of minisign
, GLDF
Sign provides an intuitive and secure method to ensure the integrity and
authenticity of GLDF files.
meta-information.xml
inside the GLDF container, eliminating the need to
manage separate public key files.minisign
for
robust signing.bash
cargo install gldf-sign
Generate a new key pair:
bash
gldf-sign generate
Options:
-p, --public-key-path <PUBLIC_KEY_PATH>
: Specify the path to the new public
key.-s, --secret-key-path <SECRET_KEY_PATH>
: Specify the path to the new secret
key.-f, --force
: Force generate a new key pair.-c, --comment <COMMENT>
: Add a one-line untrusted comment.-W, --passwordless
: Don't use a password for the secret key.Sign a file using a given private key:
bash
gldf-sign sign -s <SECRET_KEY_FILE> -p <PUBLIC_KEY_FILE> <FILE>
Sign a GLDF file and embed the public key into its meta-information:
bash
gldf-sign signgldf -s <SECRET_KEY_FILE> -p <PUBLIC_KEY_FILE> <GLDFFILE>
Verify a signed file:
bash
gldf-sign verify <FILE>
Verify a signed GLDF file:
bash
gldf-sign verifygldf <GLDFFILE>
Contributions are always appreciated! For more details on how to contribute, please refer to CONTRIBUTING.md.
GLDF Sign is licensed under the GPL-3.0-or-later. For more information, see the LICENSE file.