Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action to identify keys used in various file types #118

Closed
wants to merge 1 commit into from

Conversation

mopac2
Copy link

@mopac2 mopac2 commented Mar 16, 2022

Please be aware that I am not very good at "C", and most of this was derived by just composing copypasta bits from various places within minisign, so it might deserve an extra bit of scrutiny.

If there are significant changes required, I would humbly ask for help making them (or simply for the maintainers to reimplement it as would be acceptable), as this took me a while to compose and C is really NOT by strong suite.

Usage example:

$ mkdir tmp

$ ./zig-out/bin/minisign -G -p tmp/pub -s tmp/sec
[...snip...]
Files signed using this key pair can be verified with the following command:

minisign -Vm <file> -P RWSHRgUst0bdZ+XN6Hc50aJCf5AZUFtIjjEvpWyCDzjqXFpBGIE3VMdQ

$ echo body > tmp/message.txt

$ ./zig-out/bin/minisign -Sm tmp/message.txt -s tmp/sec
[...snip...]

$ ./zig-out/bin/minisign -k -m tmp/message.txt
67DD46B72C054687

$ ./zig-out/bin/minisign -k -x tmp/message.txt.minisig 
67DD46B72C054687

$ ./zig-out/bin/minisign -k -P RWSHRgUst0bdZ+XN6Hc50aJCf5AZUFtIjjEvpWyCDzjqXFpBGIE3VMdQ
67DD46B72C054687

$ ./zig-out/bin/minisign -k -p tmp/pub
67DD46B72C054687

$ ./zig-out/bin/minisign -k -s tmp/sec
Password: (empty)
Deriving a key from the password and decrypting the secret key... 
done

67DD46B72C054687

@jedisct1 jedisct1 force-pushed the master branch 2 times, most recently from 92768e1 to 709fed6 Compare January 17, 2023 10:48
@github-actions github-actions bot added the Stale label Jan 1, 2025
@github-actions github-actions bot closed this Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant