Skip to content

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.

Notifications You must be signed in to change notification settings

adamantida/BinarySign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Signature Tool

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.

Features

  • 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.

Requirements

  • C++11 or later
  • A base64 library (included as base64.h)

Usage

There are 4 flags in total -i inputFile -o outputFile -c comment -v verify

Adding a Signature

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>

Verifying a Signature

To verify a signature from a file, use the -v flag followed by the file name.

BinarySign.exe -v <file>

Example

Adding a Signature

BinarySign.exe -i example.* -o signed_example.* -c "This is a test comment"

Verifying a Signature

BinarySign.exe -v signed_example.*

About

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.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published