CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
index.js23 linesDownload Raw Back to jws
1/*global exports*/2var SignStream = require('./lib/sign-stream');3var VerifyStream = require('./lib/verify-stream');4 5var ALGORITHMS = [6  'HS256', 'HS384', 'HS512',7  'RS256', 'RS384', 'RS512',8  'PS256', 'PS384', 'PS512',9  'ES256', 'ES384', 'ES512'10];11 12exports.ALGORITHMS = ALGORITHMS;13exports.sign = SignStream.sign;14exports.verify = VerifyStream.verify;15exports.decode = VerifyStream.decode;16exports.isValid = VerifyStream.isValid;17exports.createSign = function createSign(opts) {18  return new SignStream(opts);19};20exports.createVerify = function createVerify(opts) {21  return new VerifyStream(opts);22};23 
basant307/AI_Governance_Project · CoolFace