Skip to content

A script to verify a message from a sender is authentic

License

Notifications You must be signed in to change notification settings

Zeitlin1/HashMssg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HashMssg

A script to verify a sender's message is authentic

Directions: First, run the PEM generator script "PEMGen.py", this will generate 2x random PEM keys, a private key (used for signing) and a public key (used for verifying messages). The public key can be given out to those who wish to verify messages from the author. The private key should be kept hidden from public view at all times.

$ python3 PEMGen.py

image

Then, run the "pyHashgui.py" script which will bring up the user interface allowing you to sign and check messages.

$ python3 pyHashgui.py

image

Use the private PEM key to digitally sign your message (be sure to inclue the -----BEGIN PRIVATE KEY----- & -----END PRIVATE KEY----- in the key textfields). Signing the message will create a signature using the private PEM key and the message as inputs. The signature should be included with published messages for later verification.

image

To verify if a message is authentic and unchanged, simply paste in the signature generated from the author's message and the author's alleged message.

image

Click "Verify Signature" and if the message is authentic, the result will be "True". If any changes have been made to the message or the signature, the result will be "False".

About

A script to verify a message from a sender is authentic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages