This commit is contained in:
1
sheet02/a2/b-privatekey.txt
Normal file
1
sheet02/a2/b-privatekey.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ME4CAQAwEAYHKoZIzj0CAQYFK4EEACIENzA1AgEBBDA/BgxBUzJUc3MfZVBIdPTbQfIdf4SABYZJlno8rUPkhBRrK3VkpEhyGdviYUPViz4=
|
||||||
1
sheet02/a2/b-publickey.txt
Normal file
1
sheet02/a2/b-publickey.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEVHteuMnscItIHycwEZ80P44WyIWmL7PmeN6HLRAu8IJsLKX6BTDawN0MezskF68oQ9Ft7zy2u4v2aaYB4tgUv+0YG7zEwFr0ofqSqFFPSLr0qrVRvXi/H7Bux8tYVgaN
|
||||||
1
sheet02/a2/b-signature.txt
Normal file
1
sheet02/a2/b-signature.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
MGQCMHq04CPgDiSaWPXb3LiuBrb97aV4JjinA5gIuEIFjFYLD1jYdECBdV/aHLLYsyMYnAIwedsP6qJKK4Y2uLgn3XLxbHgDKxf+eq07Rptmn/LttHTpWjtTfaLERM+Uh2BUGmMt
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
copy the publickey into a .pem file that starts with -----BEGIN PUBLIC KEY----- and ends with -----END PUBLIC KEY----- and has linebreaks after 64 chars.
|
||||||
|
then decode the base64 signature
|
||||||
|
base64 -d b-signature.txt > signature.bin
|
||||||
|
verify using openssl
|
||||||
|
openssl dgst -sha256 -verify c-pubkey.pem -signature signature.bin plaintext.txt
|
||||||
Reference in New Issue
Block a user