@auth0/thumbprint
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -1,7 +0,9 @@ | ||
var crypto = require('crypto'); | ||
"use strict"; | ||
const crypto = require('crypto'); | ||
module.exports.calculate = function (cert) { | ||
var shasum = crypto.createHash('sha1'); | ||
const shasum = crypto.createHash('sha1'); | ||
shasum.update(new Buffer(cert, 'base64')); | ||
return shasum.digest('hex'); | ||
} | ||
}; |
{ | ||
"name": "@auth0/thumbprint", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Certificate thumbprint calculator for Node.js", | ||
@@ -16,6 +16,15 @@ "main": "./lib/index.js", | ||
"contributors": [ | ||
{"name": "Auth0", "url": "https://auth0.com/"} | ||
{ | ||
"name": "Auth0", | ||
"url": "https://auth0.com/" | ||
} | ||
], | ||
"license": "MIT", | ||
"readmeFilename": "README.md" | ||
"readmeFilename": "README.md", | ||
"scripts": { | ||
"test": "mocha" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^5.0.1" | ||
} | ||
} |
Thumbprint | ||
========== | ||
Certificate thumbprint calculator for Node.js. | ||
[![Build Status](https://travis-ci.org/auth0/thumbprint.svg?branch=master)](https://travis-ci.org/auth0/thumbprint) | ||
This is meant to be a transient fork of the _thumbprint_ package [until it supports Node 6](https://github.com/leandrob/thumbprint/pull/3). | ||
Certificate thumbprint calculator for Node 4, 6 and 8. | ||
@@ -15,2 +15,3 @@ ## Installation | ||
```javascript | ||
const thumbprint = require('@auth0/thumbprint'); | ||
@@ -17,0 +18,0 @@ var thumbprint = require('@auth0/thumbprint'); |
Sorry, the diff of this file is not supported yet
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
26870
11
22
20
0
1