Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 361 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 361 Bytes

e2enode

A wrapper for using Google e2e as a nodejs library

Example:

> e2enode = require('e2enode');
> e2enode.require('e2e.openpgp.asciiArmor');
true
> e2e.openpgp.asciiArmor.encode('MESSAGE', e2e.stringToByteArray('test'));
'-----BEGIN PGP MESSAGE-----\r\nCharset: UTF-8\r\n\r\ndGVzdA==\r\n=+G7Q\r\n-----END PGP MESSAGE-----\r\n'