### Build Minisign with Zig (Static libsodium) Source: https://github.com/jedisct1/minisign/blob/master/README.md Compile Minisign using Zig with libsodium statically linked. Optimize for small release size. ```sh zig build -Doptimize=ReleaseSmall -Dstatic ``` -------------------------------- ### Build Minisign with Zig (Dynamic libsodium) Source: https://github.com/jedisct1/minisign/blob/master/README.md Compile Minisign using Zig with libsodium dynamically linked. Optimize for small release size. ```sh zig build -Doptimize=ReleaseSmall ``` -------------------------------- ### Build Minisign with Zig (No libsodium) Source: https://github.com/jedisct1/minisign/blob/master/README.md Compile Minisign using Zig without libsodium, removing external dependencies. Optimize for small release size. ```sh zig build -Doptimize=ReleaseSmall -Dwithout-libsodium ``` -------------------------------- ### Build Minisign with CMake (Static Executables) Source: https://github.com/jedisct1/minisign/blob/master/README.md Configure Minisign build with CMake to create static executables. ```sh cmake -D BUILD_STATIC_EXECUTABLES=1 .. ``` -------------------------------- ### Build Minisign with CMake Source: https://github.com/jedisct1/minisign/blob/master/README.md Compile Minisign using CMake, GCC or Clang, and libsodium. Standard build process. ```sh mkdir build cd build cmake .. make make install # with appropriate permissions ``` -------------------------------- ### Build Minisign with CMake (Static libsodium) Source: https://github.com/jedisct1/minisign/blob/master/README.md Configure Minisign build with CMake to statically link libsodium for creating static binaries. ```sh cmake -D STATIC_LIBSODIUM=1 .. ``` -------------------------------- ### Verify Signature using Docker Source: https://github.com/jedisct1/minisign/blob/master/README.md Verify a file's signature using the Minisign Docker image. Mount the directory containing the file and public key for verification. ```sh docker run -i --rm -v .:/minisign jedisct1/minisign \ -Vm file_to_verify -p minisign.pub ``` -------------------------------- ### Verify a File Signature with Minisign Source: https://github.com/jedisct1/minisign/blob/master/README.md Verify a file's signature using its corresponding public key. Requires the original file and its signature. ```sh minisign -Vm file.txt -p minisign.pub ``` -------------------------------- ### Run Minisign in Docker Source: https://github.com/jedisct1/minisign/blob/master/README.md Execute the Minisign command-line tool within a Docker container. Useful for isolated environments or CI/CD pipelines. ```sh docker run -i --rm jedisct1/minisign ``` -------------------------------- ### Sign a File with Minisign Source: https://github.com/jedisct1/minisign/blob/master/README.md Create a signature for a file using your Minisign secret key. The signature will be saved with a .minisig extension. ```sh minisign -S -m file.txt ``` -------------------------------- ### Recreate Public Key Source: https://github.com/jedisct1/minisign/blob/master/src/manpage.md Recreates the public key file from an existing secret key file. ```bash minisign -R -s seckey_file -p pubkey_file ``` -------------------------------- ### Verify a File Signature with Public Key String Source: https://github.com/jedisct1/minisign/blob/master/README.md Verify a file's signature using a public key provided directly as a string. Useful when the public key is not saved in a file. ```sh minisign -Vm file.txt -P RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3 ``` -------------------------------- ### Generate Key Pair using Docker Source: https://github.com/jedisct1/minisign/blob/master/README.md Generate a Minisign key pair inside a Docker container, mounting the current directory to persist the keys. Ensure the secret key is backed up and kept secure. ```sh docker run -i --rm -v .:/minisign jedisct1/minisign \ -s minisign.key -G ``` -------------------------------- ### Sign Files with Minisign Source: https://github.com/jedisct1/minisign/blob/master/src/manpage.md Signs one or more files. The signature file will be named '.minisig'. The secret key is loaded from default locations or specified with -s. Use -t to add a trusted comment. ```bash minisign -Sm myfile.txt ``` ```bash minisign -Sm myfile.txt myfile2.txt *.c ``` ```bash minisign -Sm myfile.txt -t 'This comment will be signed as well' ``` -------------------------------- ### Sign Files using Docker Source: https://github.com/jedisct1/minisign/blob/master/README.md Sign files within a Docker container, using a persisted secret key. The public key will be generated alongside the secret key. ```sh docker run -i --rm -v .:/minisign jedisct1/minisign \ -s minisign.key -S -m files_to_sign ``` -------------------------------- ### Verify Minisign Signature Source: https://github.com/jedisct1/minisign/blob/master/src/manpage.md Verifies a file against its signature. The signature file is expected to be '.minisig'. The public key can be provided via a file (-p) or a base64 string (-P). ```bash minisign -Vm myfile.txt -P ``` ```bash minisign -Vm myfile.txt -p minisign.pub ``` -------------------------------- ### Generate Minisign Key Pair Source: https://github.com/jedisct1/minisign/blob/master/src/manpage.md Generates a new Ed25519 key pair. The public key is saved to 'minisign.pub' and the secret key is encrypted and saved to '~/.minisign/minisign.key'. Use -f to overwrite existing keys. ```bash minisign -G ``` -------------------------------- ### Sign a File with a Trusted Comment Source: https://github.com/jedisct1/minisign/blob/master/README.md Sign a file and include a trusted comment that will be verified along with the signature. Useful for adding context or version information. ```sh minisign -S -m file.txt -t "Trusted comment here" ``` -------------------------------- ### Change Secret Key Password Source: https://github.com/jedisct1/minisign/blob/master/src/manpage.md Changes or removes the password protecting a secret key file. ```bash minisign -C -s seckey_file -W ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.