🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

armor-gpg-key

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

armor-gpg-key

Very simple tool for making base64 encoded keys armored by inserting special headers information into it.

1.0.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

armor-gpg-key

Very simple tool for making base64 encoded keys armored by inserting special headers information into it.

Why ?

  • Makes compressed keys without headers armored
  • When working with GitHub gpg_keys api
  • When sharing keys without headers

Installation

npm install armor-gpg-key

Usage

There is three types of key headers:

  • public (default)
  • private
  • message

Example of armor function call:

/*
 *  First argument is a string of the data
 *  Second is a headers type to insert (public, private, message)
 */
armor(string, type)

More real example:

var armor = require('armor-gpg-key');

armor(myBase64EncodedData, 'message');

Will return something like this :

-----BEGIN PGP MESSAGE-----

xsBNBFgPtZgBC.........long data=
-----END PGP MESSAGE-----

License

MIT

Keywords

gpg

FAQs

Package last updated on 30 Oct 2016

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