New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-flower-password

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-flower-password - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

13

dist/flowerpassword.js
'use strict';
const MD5 = require('blueimp-md5');
var MD5 = require('blueimp-md5');
function fpCode(password, key, length) {
var hmd5, rule, source, str, code32, code01;
var hmd5 = void 0,
rule = void 0,
source = void 0,
str = void 0,
code32 = void 0,
code01 = void 0;
length = length || 16;
if (!password || !key || (length < 2) || (length > 32)) {
if (!password || !key || length < 2 || length > 32) {
return null;

@@ -31,2 +36,2 @@ }

module.exports = fpCode;
module.exports = fpCode;

@@ -1,1 +0,1 @@

"use strict";function fpCode(e,s,i){var r,o,n,t,l,u;if(i=i||16,!e||!s||i<2||i>32)return null;r=MD5(e,s),o=MD5(r,"kise").split(""),n=MD5(r,"snow").split(""),t="sunlovesnow1990090127xykab";for(var p=0;p<32;p++)isNaN(n[p])&&t.search(o[p])>-1&&(n[p]=n[p].toUpperCase());return l=n.join(""),u=l.slice(0,1),(isNaN(u)?u:"K")+l.slice(1,i)}const MD5=require("blueimp-md5");module.exports=fpCode;
"use strict";function fpCode(i,e,o){var s=void 0,r=void 0,d=void 0,v=void 0,l=void 0,n=void 0;if(o=o||16,!i||!e||o<2||o>32)return null;s=MD5(i,e),r=MD5(s,"kise").split(""),d=MD5(s,"snow").split(""),v="sunlovesnow1990090127xykab";for(var t=0;t<32;t++)isNaN(d[t])&&v.search(r[t])>-1&&(d[t]=d[t].toUpperCase());return l=d.join(""),n=l.slice(0,1),(isNaN(n)?n:"K")+l.slice(1,o)}var MD5=require("blueimp-md5");module.exports=fpCode;

@@ -5,3 +5,3 @@ {

"description": "Flower Password implementation for Node.js",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/flowerpassword.js",

@@ -32,9 +32,11 @@ "files": [

"dependencies": {
"blueimp-md5": "^2.3.1"
"blueimp-md5": "^2.5.0"
},
"devDependencies": {
"babel-preset-es2015": "^6.18.0",
"del": "^2.2.2",
"gulp": "^3.9.1",
"gulp-babel": "^6.1.2",
"gulp-rename": "^1.2.2",
"gulp-sourcemaps": "^1.6.0",
"gulp-sourcemaps": "^2.2.0",
"gulp-uglify": "^2.0.0"

@@ -41,0 +43,0 @@ },

@@ -6,3 +6,3 @@ 'use strict';

function fpCode(password, key, length) {
var hmd5, rule, source, str, code32, code01;
let hmd5, rule, source, str, code32, code01;
length = length || 16;

@@ -19,3 +19,3 @@

for (var i = 0; i < 32; i++) {
for (let i = 0; i < 32; i++) {
if (isNaN(source[i])) {

@@ -22,0 +22,0 @@ if (str.search(rule[i]) > -1) {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc