New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gpgc

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gpgc

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Gpgcrypt

This gem is designed to allow you to manually encrypt/ decrypt RSA encoded messages using GnuPG.

Installation

Install the gem:

$ gem install gpgcrypt

Usage Template

Encrypting:

$ gpgcrypt message public_key

Decrypting:

$ gpgcrypt encrypted_message private_key

Usage

Have your partner generate a public/private key pair (You may have already done this).

$ ssh-keygen -t rsa

Obtain a copy of your partner's public key.

And then use gpgcrypt to encrypt a message using your partner's public key:

$ gpgcrypt message.txt public_key_of_recipient_rsa.pub > encrypted_message.txt

Or have your partner decrypt a message of yours using your own private key:

$ gpgcrypt encrypted_message.txt your_private_key_rsa > message.txt

Alternate Usage

You can alternatively specify a URL to public keys or messages

Encrypting:

$ gpgcrypt message.txt github.com/TheNotary/pgp/raw
Your message has been pastebin'd to http://pastebin.com/lkajds;lkfjsdaf

Decrypting:

$ gpgcrypt http://pastebin.com/lkajds;lkfjsdaf ~/.ssh/id_rsa

Later, you will be able to add other people's public keys to your ~/.gpgc folder. Then you will be able to set their key as the default key.

$ gpgc --save-key pastebin.com/raw/;laksjdflkjdf joe
$ gpgc --converse-with ~/.gpgc/joe
$ gpgc "Hey, let me know when you've made the finishing touches."

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 20 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc