nodemailer-openpgp:使用PGP加密Nodemailer消息

时间:2021-05-02 20:32:18
【文件属性】:
文件名称:nodemailer-openpgp:使用PGP加密Nodemailer消息
文件大小:14KB
文件格式:ZIP
更新时间:2021-05-02 20:32:18
JavaScript Nodemailer的OpenPGP模块 该模块允许您使用Nodemailer发送PGP加密的消息。 生成的消息采用PGP / MIME格式,当前只能加密或加密+签名,而不仅仅是签名消息。 安装 从npm安装 npm install nodemailer-openpgp --save 用法 加载openpgpEncrypt函数 var openpgpEncrypt = require ( 'nodemailer-openpgp' ) . openpgpEncrypt ; 将其附加为nodemailer传输对象的“流”处理程序 transporter . use ( 'stream' , openpgpEncrypt ( options ) ) ; 在哪里 选项包括以下用于加密的可选选项 signingKey是用于签名加密消息的可选PGP私钥。 如果未提供此值,则消息将被加密但未签名 密
【文件预览】:
nodemailer-openpgp-master
----.gitignore(40B)
----README.md(2KB)
----.github()
--------FUNDING.yml(133B)
----test()
--------fixtures()
--------nodemailer-openpgp-test.js(3KB)
----LICENSE(7KB)
----.eslintrc(90B)
----Gruntfile.js(593B)
----package.json(1KB)
----.npmignore(43B)
----.travis.yml(439B)
----lib()
--------nodemailer-openpgp.js(5KB)
----.prettierrc.js(156B)

网友评论