Posted 26 November 2016 - 04:38 AM
Sig.
GPG's for CC!
This is a quick proof of concept program that verifies files in order to make sure the file you downloaded is what you think it is.
Lets say Pastebin gets attacked and turns all CC scripts into a known malware for lua or CC itself (not that it would happen)
Hundreds of people download your program from Pastebin, and oh no! You now have to pay a ransom in Krist to decrypt your files!
What are you going to do now, especially since you have lots of important information on that computer! (That was entirely fictional, and probably never will happen.)
Well, before you run it, check if the author has a "sig"! Run it through the sig program, and it will say if that file has the same sig as the author provided.
Example gif:
(Note: I have fixed the bug where it doesn't find the file you gave it, but it's in the current directory. It doesn't work for
sig outputs sadly.)
Pastebin: pastebin get 2LwAy08e sig
I used SHA256 and Rot13. Don't know why, but I just did. Pass it only a file and it will generate a sig, and output it to "/out.sig" atleast for me.
Used a snippet of rot13 from GitHub, which I can no longer find, and GravityScore's SHA256 implementation. Thanks!
Yeah, probably not going to be used but oh well.