Comparing version 0.6.6 to 0.6.7
'use strict' | ||
var os = require('os') | ||
var crypto = require('crypto') | ||
var forge = require('node-forge') | ||
@@ -74,5 +74,5 @@ var RANDOM_MAX_LENGTH = 64 | ||
ClerobeeProto.cryptify = function ( string, length ) { | ||
return crypto.createHash('md5') | ||
.update( string, 'utf8') | ||
.digest('hex') | ||
return forge.md.sha256.create() | ||
.update( string ) | ||
.digest().toHex() | ||
.slice(-length ) | ||
@@ -79,0 +79,0 @@ } |
{ | ||
"name": "clerobee", | ||
"version": "0.6.6", | ||
"version": "0.6.7", | ||
"description": "A featureful dependency-free UID generator", | ||
@@ -32,5 +32,7 @@ "keywords": [ | ||
"main": "./lib/clerobee.js", | ||
"dependencies": {}, | ||
"dependencies": { | ||
"node-forge": "^0.6.42" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"chai": "^3.5.0", | ||
"gulp": "^3.9.1", | ||
@@ -42,6 +44,5 @@ "gulp-eslint": "^3.0.1", | ||
"browser": { | ||
"fs": false, | ||
"child_process": false, | ||
"crypto": false | ||
}, | ||
"fs": false, | ||
"child_process": false | ||
}, | ||
"engines": { | ||
@@ -48,0 +49,0 @@ "node": ">= 4.0.0" |
@@ -8,3 +8,3 @@ Clerobee - a featureful UID generator | ||
======== | ||
[clerobee](https://github.com/imrefazekas/clerobee) is a very handy dependency-free utility library allowing to generate UIDs considering actual time, network resources and process in a distributed environment. | ||
[clerobee](https://github.com/imrefazekas/clerobee) is a very handy utility library allowing to generate UIDs considering actual time, network resources and process in a distributed environment. | ||
@@ -11,0 +11,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15724
1
+ Addednode-forge@^0.6.42
+ Addednode-forge@0.6.49(transitive)