【文件属性】:
文件名称:json-gpg:JSON GPG 签名和验证
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-03 22:52:09
JavaScript
JSON - GPG
一种从 node.js 以编程方式对 JSON 对象进行签名和验证的工具。
用法
var jsonGpg = require ( 'json-gpg' ) ;
var obj = { hello : 'world' } ;
jsonGpg . sign ( obj , /* optional */ key , function ( err , result ) {
if ( err )
throw err ;
console . log ( 'Signature: %j' , result ) ;
jsonGpg . verify ( obj , result , /* optional */ key , function ( err , result ) {
if ( err )
throw err ;
conso
【文件预览】:
json-gpg-master
----index.js(3KB)
----package.json(630B)
----test()
--------api-test.js(795B)
----.gitignore(28B)
----README.md(2KB)