Skip to content
This repository has been archived by the owner on Sep 28, 2019. It is now read-only.
/ armor-gpg-key Public archive

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

License

Notifications You must be signed in to change notification settings

b37t1td/armor-gpg-key

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published