- My RSA private key in ~/.ssh/id_rsa
- The sender's RSA public key in /tmp/sender_rsa.pub
- An encrypted file in tmp (/tmp/the_file.gpg) that has been encrypted and signed by the sender with gpg using the following command:
I need a node.js program that will:
- Verify the signature (and return a message indicating invalid signature if the signature isn't valid)
- Decrypt the file (preferably to STDOUT, but it would be acceptable for it to write the decrypted content to /tmp/the_file)
Is there anyone here that is capable of writing such a program? If so how soon could you have it done, and what would it cost me?
Note: I am willing to install node packages from registry.npmjs.org
Note 2: I am not willing to start up an OS shell and execute gpg
Note 3: It needs to work, but it doesn't need to be pretty. It doesn't need documentation, or test cases, or command line parameters. Hard-coding any filenames, directories, values, etc is fine. This isn't going into a production system anywhere. This is simply for the purpose of proving a point to someone I'm having a discussion with.