This repository contains a simple C++ application to add and verify a signature to/from a file. The signature is a base64-encoded comment that is appended to the file.
- Add Signature: Append a base64-encoded comment to the end of a file.
- Verify Signature: Check for and decode the base64-encoded comment from a file.
- C++11 or later
- A base64 library (included as
base64.h
)
There are 4 flags in total
-i inputFile
-o outputFile
-c comment
-v verify
To add a signature to a file, use the -i
flag for the input file, the -o
flag for the output file, and the -c
flag for the comment to be encoded and appended.
BinarySign.exe -i <input_file> -o <output_file> -c <comment>
To verify a signature from a file, use the -v flag followed by the file name.
BinarySign.exe -v <file>
BinarySign.exe -i example.* -o signed_example.* -c "This is a test comment"
BinarySign.exe -v signed_example.*