Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flowerpassword.js

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flowerpassword.js - npm Package Compare versions

Comparing version 2.0.0 to 3.0.1

dist/flowerpassword.d.ts

2

dist/flowerpassword.js

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

var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var r=function(n,r){return n(r={exports:{}},r.exports),r.exports}(function(r){!function(n){function t(n,r){var t=(65535&n)+(65535&r);return(n>>16)+(r>>16)+(t>>16)<<16|65535&t}function e(n,r,e,o,u,f){return t((i=t(t(r,n),t(o,f)))<<(c=u)|i>>>32-c,e);var i,c}function o(n,r,t,o,u,f,i){return e(r&t|~r&o,n,r,u,f,i)}function u(n,r,t,o,u,f,i){return e(r&o|t&~o,n,r,u,f,i)}function f(n,r,t,o,u,f,i){return e(r^t^o,n,r,u,f,i)}function i(n,r,t,o,u,f,i){return e(t^(r|~o),n,r,u,f,i)}function c(n,r){var e,c,a,l,s;n[r>>5]|=128<<r%32,n[14+(r+64>>>9<<4)]=r;var d=1732584193,v=-271733879,h=-1732584194,p=271733878;for(e=0;e<n.length;e+=16)c=d,a=v,l=h,s=p,d=o(d,v,h,p,n[e],7,-680876936),p=o(p,d,v,h,n[e+1],12,-389564586),h=o(h,p,d,v,n[e+2],17,606105819),v=o(v,h,p,d,n[e+3],22,-1044525330),d=o(d,v,h,p,n[e+4],7,-176418897),p=o(p,d,v,h,n[e+5],12,1200080426),h=o(h,p,d,v,n[e+6],17,-1473231341),v=o(v,h,p,d,n[e+7],22,-45705983),d=o(d,v,h,p,n[e+8],7,1770035416),p=o(p,d,v,h,n[e+9],12,-1958414417),h=o(h,p,d,v,n[e+10],17,-42063),v=o(v,h,p,d,n[e+11],22,-1990404162),d=o(d,v,h,p,n[e+12],7,1804603682),p=o(p,d,v,h,n[e+13],12,-40341101),h=o(h,p,d,v,n[e+14],17,-1502002290),d=u(d,v=o(v,h,p,d,n[e+15],22,1236535329),h,p,n[e+1],5,-165796510),p=u(p,d,v,h,n[e+6],9,-1069501632),h=u(h,p,d,v,n[e+11],14,643717713),v=u(v,h,p,d,n[e],20,-373897302),d=u(d,v,h,p,n[e+5],5,-701558691),p=u(p,d,v,h,n[e+10],9,38016083),h=u(h,p,d,v,n[e+15],14,-660478335),v=u(v,h,p,d,n[e+4],20,-405537848),d=u(d,v,h,p,n[e+9],5,568446438),p=u(p,d,v,h,n[e+14],9,-1019803690),h=u(h,p,d,v,n[e+3],14,-187363961),v=u(v,h,p,d,n[e+8],20,1163531501),d=u(d,v,h,p,n[e+13],5,-1444681467),p=u(p,d,v,h,n[e+2],9,-51403784),h=u(h,p,d,v,n[e+7],14,1735328473),d=f(d,v=u(v,h,p,d,n[e+12],20,-1926607734),h,p,n[e+5],4,-378558),p=f(p,d,v,h,n[e+8],11,-2022574463),h=f(h,p,d,v,n[e+11],16,1839030562),v=f(v,h,p,d,n[e+14],23,-35309556),d=f(d,v,h,p,n[e+1],4,-1530992060),p=f(p,d,v,h,n[e+4],11,1272893353),h=f(h,p,d,v,n[e+7],16,-155497632),v=f(v,h,p,d,n[e+10],23,-1094730640),d=f(d,v,h,p,n[e+13],4,681279174),p=f(p,d,v,h,n[e],11,-358537222),h=f(h,p,d,v,n[e+3],16,-722521979),v=f(v,h,p,d,n[e+6],23,76029189),d=f(d,v,h,p,n[e+9],4,-640364487),p=f(p,d,v,h,n[e+12],11,-421815835),h=f(h,p,d,v,n[e+15],16,530742520),d=i(d,v=f(v,h,p,d,n[e+2],23,-995338651),h,p,n[e],6,-198630844),p=i(p,d,v,h,n[e+7],10,1126891415),h=i(h,p,d,v,n[e+14],15,-1416354905),v=i(v,h,p,d,n[e+5],21,-57434055),d=i(d,v,h,p,n[e+12],6,1700485571),p=i(p,d,v,h,n[e+3],10,-1894986606),h=i(h,p,d,v,n[e+10],15,-1051523),v=i(v,h,p,d,n[e+1],21,-2054922799),d=i(d,v,h,p,n[e+8],6,1873313359),p=i(p,d,v,h,n[e+15],10,-30611744),h=i(h,p,d,v,n[e+6],15,-1560198380),v=i(v,h,p,d,n[e+13],21,1309151649),d=i(d,v,h,p,n[e+4],6,-145523070),p=i(p,d,v,h,n[e+11],10,-1120210379),h=i(h,p,d,v,n[e+2],15,718787259),v=i(v,h,p,d,n[e+9],21,-343485551),d=t(d,c),v=t(v,a),h=t(h,l),p=t(p,s);return[d,v,h,p]}function a(n){var r,t="",e=32*n.length;for(r=0;r<e;r+=8)t+=String.fromCharCode(n[r>>5]>>>r%32&255);return t}function l(n){var r,t=[];for(t[(n.length>>2)-1]=void 0,r=0;r<t.length;r+=1)t[r]=0;var e=8*n.length;for(r=0;r<e;r+=8)t[r>>5]|=(255&n.charCodeAt(r/8))<<r%32;return t}function s(n){var r,t,e="";for(t=0;t<n.length;t+=1)r=n.charCodeAt(t),e+="0123456789abcdef".charAt(r>>>4&15)+"0123456789abcdef".charAt(15&r);return e}function d(n){return unescape(encodeURIComponent(n))}function v(n){return function(n){return a(c(l(n),8*n.length))}(d(n))}function h(n,r){return function(n,r){var t,e,o=l(n),u=[],f=[];for(u[15]=f[15]=void 0,o.length>16&&(o=c(o,8*n.length)),t=0;t<16;t+=1)u[t]=909522486^o[t],f[t]=1549556828^o[t];return e=c(u.concat(l(r)),512+8*r.length),a(c(f.concat(e),640))}(d(n),d(r))}function p(n,r,t){return r?t?h(r,n):s(h(r,n)):t?v(n):s(v(n))}r.exports?r.exports=p:n.md5=p}(n)});module.exports=function(n,t,e){if(void 0===e&&(e=16),!n||!t||e<2||e>32)return null;for(var o=r(n,t),u=r(o,"kise").split(""),f=r(o,"snow").split(""),i=0;i<32;i++)isNaN(f[i])&&"sunlovesnow1990090127xykab".search(u[i])>-1&&(f[i]=f[i].toUpperCase());var c=f.join(""),a=c.slice(0,1);return(isNaN(a)?a:"K")+c.slice(1,e)};
var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(r,t){return function(r){!function(n){function t(n,r){var t=(65535&n)+(65535&r);return(n>>16)+(r>>16)+(t>>16)<<16|65535&t}function e(n,r,e,o,u,f){return t((i=t(t(r,n),t(o,f)))<<(c=u)|i>>>32-c,e);var i,c}function o(n,r,t,o,u,f,i){return e(r&t|~r&o,n,r,u,f,i)}function u(n,r,t,o,u,f,i){return e(r&o|t&~o,n,r,u,f,i)}function f(n,r,t,o,u,f,i){return e(r^t^o,n,r,u,f,i)}function i(n,r,t,o,u,f,i){return e(t^(r|~o),n,r,u,f,i)}function c(n,r){var e,c,a,l,s;n[r>>5]|=128<<r%32,n[14+(r+64>>>9<<4)]=r;var d=1732584193,h=-271733879,v=-1732584194,g=271733878;for(e=0;e<n.length;e+=16)c=d,a=h,l=v,s=g,d=o(d,h,v,g,n[e],7,-680876936),g=o(g,d,h,v,n[e+1],12,-389564586),v=o(v,g,d,h,n[e+2],17,606105819),h=o(h,v,g,d,n[e+3],22,-1044525330),d=o(d,h,v,g,n[e+4],7,-176418897),g=o(g,d,h,v,n[e+5],12,1200080426),v=o(v,g,d,h,n[e+6],17,-1473231341),h=o(h,v,g,d,n[e+7],22,-45705983),d=o(d,h,v,g,n[e+8],7,1770035416),g=o(g,d,h,v,n[e+9],12,-1958414417),v=o(v,g,d,h,n[e+10],17,-42063),h=o(h,v,g,d,n[e+11],22,-1990404162),d=o(d,h,v,g,n[e+12],7,1804603682),g=o(g,d,h,v,n[e+13],12,-40341101),v=o(v,g,d,h,n[e+14],17,-1502002290),d=u(d,h=o(h,v,g,d,n[e+15],22,1236535329),v,g,n[e+1],5,-165796510),g=u(g,d,h,v,n[e+6],9,-1069501632),v=u(v,g,d,h,n[e+11],14,643717713),h=u(h,v,g,d,n[e],20,-373897302),d=u(d,h,v,g,n[e+5],5,-701558691),g=u(g,d,h,v,n[e+10],9,38016083),v=u(v,g,d,h,n[e+15],14,-660478335),h=u(h,v,g,d,n[e+4],20,-405537848),d=u(d,h,v,g,n[e+9],5,568446438),g=u(g,d,h,v,n[e+14],9,-1019803690),v=u(v,g,d,h,n[e+3],14,-187363961),h=u(h,v,g,d,n[e+8],20,1163531501),d=u(d,h,v,g,n[e+13],5,-1444681467),g=u(g,d,h,v,n[e+2],9,-51403784),v=u(v,g,d,h,n[e+7],14,1735328473),d=f(d,h=u(h,v,g,d,n[e+12],20,-1926607734),v,g,n[e+5],4,-378558),g=f(g,d,h,v,n[e+8],11,-2022574463),v=f(v,g,d,h,n[e+11],16,1839030562),h=f(h,v,g,d,n[e+14],23,-35309556),d=f(d,h,v,g,n[e+1],4,-1530992060),g=f(g,d,h,v,n[e+4],11,1272893353),v=f(v,g,d,h,n[e+7],16,-155497632),h=f(h,v,g,d,n[e+10],23,-1094730640),d=f(d,h,v,g,n[e+13],4,681279174),g=f(g,d,h,v,n[e],11,-358537222),v=f(v,g,d,h,n[e+3],16,-722521979),h=f(h,v,g,d,n[e+6],23,76029189),d=f(d,h,v,g,n[e+9],4,-640364487),g=f(g,d,h,v,n[e+12],11,-421815835),v=f(v,g,d,h,n[e+15],16,530742520),d=i(d,h=f(h,v,g,d,n[e+2],23,-995338651),v,g,n[e],6,-198630844),g=i(g,d,h,v,n[e+7],10,1126891415),v=i(v,g,d,h,n[e+14],15,-1416354905),h=i(h,v,g,d,n[e+5],21,-57434055),d=i(d,h,v,g,n[e+12],6,1700485571),g=i(g,d,h,v,n[e+3],10,-1894986606),v=i(v,g,d,h,n[e+10],15,-1051523),h=i(h,v,g,d,n[e+1],21,-2054922799),d=i(d,h,v,g,n[e+8],6,1873313359),g=i(g,d,h,v,n[e+15],10,-30611744),v=i(v,g,d,h,n[e+6],15,-1560198380),h=i(h,v,g,d,n[e+13],21,1309151649),d=i(d,h,v,g,n[e+4],6,-145523070),g=i(g,d,h,v,n[e+11],10,-1120210379),v=i(v,g,d,h,n[e+2],15,718787259),h=i(h,v,g,d,n[e+9],21,-343485551),d=t(d,c),h=t(h,a),v=t(v,l),g=t(g,s);return[d,h,v,g]}function a(n){var r,t="",e=32*n.length;for(r=0;r<e;r+=8)t+=String.fromCharCode(n[r>>5]>>>r%32&255);return t}function l(n){var r,t=[];for(t[(n.length>>2)-1]=void 0,r=0;r<t.length;r+=1)t[r]=0;var e=8*n.length;for(r=0;r<e;r+=8)t[r>>5]|=(255&n.charCodeAt(r/8))<<r%32;return t}function s(n){var r,t,e="";for(t=0;t<n.length;t+=1)r=n.charCodeAt(t),e+="0123456789abcdef".charAt(r>>>4&15)+"0123456789abcdef".charAt(15&r);return e}function d(n){return unescape(encodeURIComponent(n))}function h(n){return function(n){return a(c(l(n),8*n.length))}(d(n))}function v(n,r){return function(n,r){var t,e,o=l(n),u=[],f=[];for(u[15]=f[15]=void 0,o.length>16&&(o=c(o,8*n.length)),t=0;t<16;t+=1)u[t]=909522486^o[t],f[t]=1549556828^o[t];return e=c(u.concat(l(r)),512+8*r.length),a(c(f.concat(e),640))}(d(n),d(r))}function g(n,r,t){return r?t?v(r,n):s(v(r,n)):t?h(n):s(h(n))}r.exports?r.exports=g:n.md5=g}(n)}(t={exports:{}}),t.exports}();module.exports=function(n,t,e){void 0===e&&(e=16);for(var o=r(n,t),u=r(o,"kise").split(""),f=r(o,"snow").split(""),i=0;i<32;i++)isNaN(f[i])&&"sunlovesnow1990090127xykab".search(u[i])>-1&&(f[i]=f[i].toUpperCase());var c=f.join(""),a=c.slice(0,1);return(isNaN(a)?a:"K")+c.slice(1,e<2||e>32?16:e)};
//# sourceMappingURL=flowerpassword.js.map

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

var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var r,t=(function(r){!function(n){function t(n,r){var t=(65535&n)+(65535&r);return(n>>16)+(r>>16)+(t>>16)<<16|65535&t}function e(n,r,e,o,u,f){return t((i=t(t(r,n),t(o,f)))<<(c=u)|i>>>32-c,e);var i,c}function o(n,r,t,o,u,f,i){return e(r&t|~r&o,n,r,u,f,i)}function u(n,r,t,o,u,f,i){return e(r&o|t&~o,n,r,u,f,i)}function f(n,r,t,o,u,f,i){return e(r^t^o,n,r,u,f,i)}function i(n,r,t,o,u,f,i){return e(t^(r|~o),n,r,u,f,i)}function c(n,r){var e,c,a,l,s;n[r>>5]|=128<<r%32,n[14+(r+64>>>9<<4)]=r;var d=1732584193,v=-271733879,h=-1732584194,p=271733878;for(e=0;e<n.length;e+=16)c=d,a=v,l=h,s=p,d=o(d,v,h,p,n[e],7,-680876936),p=o(p,d,v,h,n[e+1],12,-389564586),h=o(h,p,d,v,n[e+2],17,606105819),v=o(v,h,p,d,n[e+3],22,-1044525330),d=o(d,v,h,p,n[e+4],7,-176418897),p=o(p,d,v,h,n[e+5],12,1200080426),h=o(h,p,d,v,n[e+6],17,-1473231341),v=o(v,h,p,d,n[e+7],22,-45705983),d=o(d,v,h,p,n[e+8],7,1770035416),p=o(p,d,v,h,n[e+9],12,-1958414417),h=o(h,p,d,v,n[e+10],17,-42063),v=o(v,h,p,d,n[e+11],22,-1990404162),d=o(d,v,h,p,n[e+12],7,1804603682),p=o(p,d,v,h,n[e+13],12,-40341101),h=o(h,p,d,v,n[e+14],17,-1502002290),d=u(d,v=o(v,h,p,d,n[e+15],22,1236535329),h,p,n[e+1],5,-165796510),p=u(p,d,v,h,n[e+6],9,-1069501632),h=u(h,p,d,v,n[e+11],14,643717713),v=u(v,h,p,d,n[e],20,-373897302),d=u(d,v,h,p,n[e+5],5,-701558691),p=u(p,d,v,h,n[e+10],9,38016083),h=u(h,p,d,v,n[e+15],14,-660478335),v=u(v,h,p,d,n[e+4],20,-405537848),d=u(d,v,h,p,n[e+9],5,568446438),p=u(p,d,v,h,n[e+14],9,-1019803690),h=u(h,p,d,v,n[e+3],14,-187363961),v=u(v,h,p,d,n[e+8],20,1163531501),d=u(d,v,h,p,n[e+13],5,-1444681467),p=u(p,d,v,h,n[e+2],9,-51403784),h=u(h,p,d,v,n[e+7],14,1735328473),d=f(d,v=u(v,h,p,d,n[e+12],20,-1926607734),h,p,n[e+5],4,-378558),p=f(p,d,v,h,n[e+8],11,-2022574463),h=f(h,p,d,v,n[e+11],16,1839030562),v=f(v,h,p,d,n[e+14],23,-35309556),d=f(d,v,h,p,n[e+1],4,-1530992060),p=f(p,d,v,h,n[e+4],11,1272893353),h=f(h,p,d,v,n[e+7],16,-155497632),v=f(v,h,p,d,n[e+10],23,-1094730640),d=f(d,v,h,p,n[e+13],4,681279174),p=f(p,d,v,h,n[e],11,-358537222),h=f(h,p,d,v,n[e+3],16,-722521979),v=f(v,h,p,d,n[e+6],23,76029189),d=f(d,v,h,p,n[e+9],4,-640364487),p=f(p,d,v,h,n[e+12],11,-421815835),h=f(h,p,d,v,n[e+15],16,530742520),d=i(d,v=f(v,h,p,d,n[e+2],23,-995338651),h,p,n[e],6,-198630844),p=i(p,d,v,h,n[e+7],10,1126891415),h=i(h,p,d,v,n[e+14],15,-1416354905),v=i(v,h,p,d,n[e+5],21,-57434055),d=i(d,v,h,p,n[e+12],6,1700485571),p=i(p,d,v,h,n[e+3],10,-1894986606),h=i(h,p,d,v,n[e+10],15,-1051523),v=i(v,h,p,d,n[e+1],21,-2054922799),d=i(d,v,h,p,n[e+8],6,1873313359),p=i(p,d,v,h,n[e+15],10,-30611744),h=i(h,p,d,v,n[e+6],15,-1560198380),v=i(v,h,p,d,n[e+13],21,1309151649),d=i(d,v,h,p,n[e+4],6,-145523070),p=i(p,d,v,h,n[e+11],10,-1120210379),h=i(h,p,d,v,n[e+2],15,718787259),v=i(v,h,p,d,n[e+9],21,-343485551),d=t(d,c),v=t(v,a),h=t(h,l),p=t(p,s);return[d,v,h,p]}function a(n){var r,t="",e=32*n.length;for(r=0;r<e;r+=8)t+=String.fromCharCode(n[r>>5]>>>r%32&255);return t}function l(n){var r,t=[];for(t[(n.length>>2)-1]=void 0,r=0;r<t.length;r+=1)t[r]=0;var e=8*n.length;for(r=0;r<e;r+=8)t[r>>5]|=(255&n.charCodeAt(r/8))<<r%32;return t}function s(n){var r,t,e="";for(t=0;t<n.length;t+=1)r=n.charCodeAt(t),e+="0123456789abcdef".charAt(r>>>4&15)+"0123456789abcdef".charAt(15&r);return e}function d(n){return unescape(encodeURIComponent(n))}function v(n){return function(n){return a(c(l(n),8*n.length))}(d(n))}function h(n,r){return function(n,r){var t,e,o=l(n),u=[],f=[];for(u[15]=f[15]=void 0,o.length>16&&(o=c(o,8*n.length)),t=0;t<16;t+=1)u[t]=909522486^o[t],f[t]=1549556828^o[t];return e=c(u.concat(l(r)),512+8*r.length),a(c(f.concat(e),640))}(d(n),d(r))}function p(n,r,t){return r?t?h(r,n):s(h(r,n)):t?v(n):s(v(n))}r.exports?r.exports=p:n.md5=p}(n)}(r={exports:{}},r.exports),r.exports);export default function(n,r,e){if(void 0===e&&(e=16),!n||!r||e<2||e>32)return null;for(var o=t(n,r),u=t(o,"kise").split(""),f=t(o,"snow").split(""),i=0;i<32;i++)isNaN(f[i])&&"sunlovesnow1990090127xykab".search(u[i])>-1&&(f[i]=f[i].toUpperCase());var c=f.join(""),a=c.slice(0,1);return(isNaN(a)?a:"K")+c.slice(1,e)}
var n,r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(function(n){!function(r){function t(n,r){var t=(65535&n)+(65535&r);return(n>>16)+(r>>16)+(t>>16)<<16|65535&t}function e(n,r,e,o,u,f){return t((i=t(t(r,n),t(o,f)))<<(c=u)|i>>>32-c,e);var i,c}function o(n,r,t,o,u,f,i){return e(r&t|~r&o,n,r,u,f,i)}function u(n,r,t,o,u,f,i){return e(r&o|t&~o,n,r,u,f,i)}function f(n,r,t,o,u,f,i){return e(r^t^o,n,r,u,f,i)}function i(n,r,t,o,u,f,i){return e(t^(r|~o),n,r,u,f,i)}function c(n,r){var e,c,a,l,d;n[r>>5]|=128<<r%32,n[14+(r+64>>>9<<4)]=r;var s=1732584193,h=-271733879,v=-1732584194,g=271733878;for(e=0;e<n.length;e+=16)c=s,a=h,l=v,d=g,s=o(s,h,v,g,n[e],7,-680876936),g=o(g,s,h,v,n[e+1],12,-389564586),v=o(v,g,s,h,n[e+2],17,606105819),h=o(h,v,g,s,n[e+3],22,-1044525330),s=o(s,h,v,g,n[e+4],7,-176418897),g=o(g,s,h,v,n[e+5],12,1200080426),v=o(v,g,s,h,n[e+6],17,-1473231341),h=o(h,v,g,s,n[e+7],22,-45705983),s=o(s,h,v,g,n[e+8],7,1770035416),g=o(g,s,h,v,n[e+9],12,-1958414417),v=o(v,g,s,h,n[e+10],17,-42063),h=o(h,v,g,s,n[e+11],22,-1990404162),s=o(s,h,v,g,n[e+12],7,1804603682),g=o(g,s,h,v,n[e+13],12,-40341101),v=o(v,g,s,h,n[e+14],17,-1502002290),s=u(s,h=o(h,v,g,s,n[e+15],22,1236535329),v,g,n[e+1],5,-165796510),g=u(g,s,h,v,n[e+6],9,-1069501632),v=u(v,g,s,h,n[e+11],14,643717713),h=u(h,v,g,s,n[e],20,-373897302),s=u(s,h,v,g,n[e+5],5,-701558691),g=u(g,s,h,v,n[e+10],9,38016083),v=u(v,g,s,h,n[e+15],14,-660478335),h=u(h,v,g,s,n[e+4],20,-405537848),s=u(s,h,v,g,n[e+9],5,568446438),g=u(g,s,h,v,n[e+14],9,-1019803690),v=u(v,g,s,h,n[e+3],14,-187363961),h=u(h,v,g,s,n[e+8],20,1163531501),s=u(s,h,v,g,n[e+13],5,-1444681467),g=u(g,s,h,v,n[e+2],9,-51403784),v=u(v,g,s,h,n[e+7],14,1735328473),s=f(s,h=u(h,v,g,s,n[e+12],20,-1926607734),v,g,n[e+5],4,-378558),g=f(g,s,h,v,n[e+8],11,-2022574463),v=f(v,g,s,h,n[e+11],16,1839030562),h=f(h,v,g,s,n[e+14],23,-35309556),s=f(s,h,v,g,n[e+1],4,-1530992060),g=f(g,s,h,v,n[e+4],11,1272893353),v=f(v,g,s,h,n[e+7],16,-155497632),h=f(h,v,g,s,n[e+10],23,-1094730640),s=f(s,h,v,g,n[e+13],4,681279174),g=f(g,s,h,v,n[e],11,-358537222),v=f(v,g,s,h,n[e+3],16,-722521979),h=f(h,v,g,s,n[e+6],23,76029189),s=f(s,h,v,g,n[e+9],4,-640364487),g=f(g,s,h,v,n[e+12],11,-421815835),v=f(v,g,s,h,n[e+15],16,530742520),s=i(s,h=f(h,v,g,s,n[e+2],23,-995338651),v,g,n[e],6,-198630844),g=i(g,s,h,v,n[e+7],10,1126891415),v=i(v,g,s,h,n[e+14],15,-1416354905),h=i(h,v,g,s,n[e+5],21,-57434055),s=i(s,h,v,g,n[e+12],6,1700485571),g=i(g,s,h,v,n[e+3],10,-1894986606),v=i(v,g,s,h,n[e+10],15,-1051523),h=i(h,v,g,s,n[e+1],21,-2054922799),s=i(s,h,v,g,n[e+8],6,1873313359),g=i(g,s,h,v,n[e+15],10,-30611744),v=i(v,g,s,h,n[e+6],15,-1560198380),h=i(h,v,g,s,n[e+13],21,1309151649),s=i(s,h,v,g,n[e+4],6,-145523070),g=i(g,s,h,v,n[e+11],10,-1120210379),v=i(v,g,s,h,n[e+2],15,718787259),h=i(h,v,g,s,n[e+9],21,-343485551),s=t(s,c),h=t(h,a),v=t(v,l),g=t(g,d);return[s,h,v,g]}function a(n){var r,t="",e=32*n.length;for(r=0;r<e;r+=8)t+=String.fromCharCode(n[r>>5]>>>r%32&255);return t}function l(n){var r,t=[];for(t[(n.length>>2)-1]=void 0,r=0;r<t.length;r+=1)t[r]=0;var e=8*n.length;for(r=0;r<e;r+=8)t[r>>5]|=(255&n.charCodeAt(r/8))<<r%32;return t}function d(n){var r,t,e="";for(t=0;t<n.length;t+=1)r=n.charCodeAt(t),e+="0123456789abcdef".charAt(r>>>4&15)+"0123456789abcdef".charAt(15&r);return e}function s(n){return unescape(encodeURIComponent(n))}function h(n){return function(n){return a(c(l(n),8*n.length))}(s(n))}function v(n,r){return function(n,r){var t,e,o=l(n),u=[],f=[];for(u[15]=f[15]=void 0,o.length>16&&(o=c(o,8*n.length)),t=0;t<16;t+=1)u[t]=909522486^o[t],f[t]=1549556828^o[t];return e=c(u.concat(l(r)),512+8*r.length),a(c(f.concat(e),640))}(s(n),s(r))}function g(n,r,t){return r?t?v(r,n):d(v(r,n)):t?h(n):d(h(n))}n.exports?n.exports=g:r.md5=g}(r)}(n={exports:{}}),n.exports);export default function(n,r,e){void 0===e&&(e=16);for(var o=t(n,r),u=t(o,"kise").split(""),f=t(o,"snow").split(""),i=0;i<32;i++)isNaN(f[i])&&"sunlovesnow1990090127xykab".search(u[i])>-1&&(f[i]=f[i].toUpperCase());var c=f.join(""),a=c.slice(0,1);return(isNaN(a)?a:"K")+c.slice(1,e<2||e>32?16:e)}
//# sourceMappingURL=flowerpassword.m.js.map

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

!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):n.fpCode=e()}(this,function(){var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var e,t=(function(e){!function(n){function t(n,e){var t=(65535&n)+(65535&e);return(n>>16)+(e>>16)+(t>>16)<<16|65535&t}function r(n,e,r,o,u,f){return t((i=t(t(e,n),t(o,f)))<<(c=u)|i>>>32-c,r);var i,c}function o(n,e,t,o,u,f,i){return r(e&t|~e&o,n,e,u,f,i)}function u(n,e,t,o,u,f,i){return r(e&o|t&~o,n,e,u,f,i)}function f(n,e,t,o,u,f,i){return r(e^t^o,n,e,u,f,i)}function i(n,e,t,o,u,f,i){return r(t^(e|~o),n,e,u,f,i)}function c(n,e){var r,c,a,d,l;n[e>>5]|=128<<e%32,n[14+(e+64>>>9<<4)]=e;var s=1732584193,p=-271733879,h=-1732584194,v=271733878;for(r=0;r<n.length;r+=16)c=s,a=p,d=h,l=v,s=o(s,p,h,v,n[r],7,-680876936),v=o(v,s,p,h,n[r+1],12,-389564586),h=o(h,v,s,p,n[r+2],17,606105819),p=o(p,h,v,s,n[r+3],22,-1044525330),s=o(s,p,h,v,n[r+4],7,-176418897),v=o(v,s,p,h,n[r+5],12,1200080426),h=o(h,v,s,p,n[r+6],17,-1473231341),p=o(p,h,v,s,n[r+7],22,-45705983),s=o(s,p,h,v,n[r+8],7,1770035416),v=o(v,s,p,h,n[r+9],12,-1958414417),h=o(h,v,s,p,n[r+10],17,-42063),p=o(p,h,v,s,n[r+11],22,-1990404162),s=o(s,p,h,v,n[r+12],7,1804603682),v=o(v,s,p,h,n[r+13],12,-40341101),h=o(h,v,s,p,n[r+14],17,-1502002290),s=u(s,p=o(p,h,v,s,n[r+15],22,1236535329),h,v,n[r+1],5,-165796510),v=u(v,s,p,h,n[r+6],9,-1069501632),h=u(h,v,s,p,n[r+11],14,643717713),p=u(p,h,v,s,n[r],20,-373897302),s=u(s,p,h,v,n[r+5],5,-701558691),v=u(v,s,p,h,n[r+10],9,38016083),h=u(h,v,s,p,n[r+15],14,-660478335),p=u(p,h,v,s,n[r+4],20,-405537848),s=u(s,p,h,v,n[r+9],5,568446438),v=u(v,s,p,h,n[r+14],9,-1019803690),h=u(h,v,s,p,n[r+3],14,-187363961),p=u(p,h,v,s,n[r+8],20,1163531501),s=u(s,p,h,v,n[r+13],5,-1444681467),v=u(v,s,p,h,n[r+2],9,-51403784),h=u(h,v,s,p,n[r+7],14,1735328473),s=f(s,p=u(p,h,v,s,n[r+12],20,-1926607734),h,v,n[r+5],4,-378558),v=f(v,s,p,h,n[r+8],11,-2022574463),h=f(h,v,s,p,n[r+11],16,1839030562),p=f(p,h,v,s,n[r+14],23,-35309556),s=f(s,p,h,v,n[r+1],4,-1530992060),v=f(v,s,p,h,n[r+4],11,1272893353),h=f(h,v,s,p,n[r+7],16,-155497632),p=f(p,h,v,s,n[r+10],23,-1094730640),s=f(s,p,h,v,n[r+13],4,681279174),v=f(v,s,p,h,n[r],11,-358537222),h=f(h,v,s,p,n[r+3],16,-722521979),p=f(p,h,v,s,n[r+6],23,76029189),s=f(s,p,h,v,n[r+9],4,-640364487),v=f(v,s,p,h,n[r+12],11,-421815835),h=f(h,v,s,p,n[r+15],16,530742520),s=i(s,p=f(p,h,v,s,n[r+2],23,-995338651),h,v,n[r],6,-198630844),v=i(v,s,p,h,n[r+7],10,1126891415),h=i(h,v,s,p,n[r+14],15,-1416354905),p=i(p,h,v,s,n[r+5],21,-57434055),s=i(s,p,h,v,n[r+12],6,1700485571),v=i(v,s,p,h,n[r+3],10,-1894986606),h=i(h,v,s,p,n[r+10],15,-1051523),p=i(p,h,v,s,n[r+1],21,-2054922799),s=i(s,p,h,v,n[r+8],6,1873313359),v=i(v,s,p,h,n[r+15],10,-30611744),h=i(h,v,s,p,n[r+6],15,-1560198380),p=i(p,h,v,s,n[r+13],21,1309151649),s=i(s,p,h,v,n[r+4],6,-145523070),v=i(v,s,p,h,n[r+11],10,-1120210379),h=i(h,v,s,p,n[r+2],15,718787259),p=i(p,h,v,s,n[r+9],21,-343485551),s=t(s,c),p=t(p,a),h=t(h,d),v=t(v,l);return[s,p,h,v]}function a(n){var e,t="",r=32*n.length;for(e=0;e<r;e+=8)t+=String.fromCharCode(n[e>>5]>>>e%32&255);return t}function d(n){var e,t=[];for(t[(n.length>>2)-1]=void 0,e=0;e<t.length;e+=1)t[e]=0;var r=8*n.length;for(e=0;e<r;e+=8)t[e>>5]|=(255&n.charCodeAt(e/8))<<e%32;return t}function l(n){var e,t,r="";for(t=0;t<n.length;t+=1)e=n.charCodeAt(t),r+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return r}function s(n){return unescape(encodeURIComponent(n))}function p(n){return function(n){return a(c(d(n),8*n.length))}(s(n))}function h(n,e){return function(n,e){var t,r,o=d(n),u=[],f=[];for(u[15]=f[15]=void 0,o.length>16&&(o=c(o,8*n.length)),t=0;t<16;t+=1)u[t]=909522486^o[t],f[t]=1549556828^o[t];return r=c(u.concat(d(e)),512+8*e.length),a(c(f.concat(r),640))}(s(n),s(e))}function v(n,e,t){return e?t?h(e,n):l(h(e,n)):t?p(n):l(p(n))}e.exports?e.exports=v:n.md5=v}(n)}(e={exports:{}},e.exports),e.exports);return function(n,e,r){if(void 0===r&&(r=16),!n||!e||r<2||r>32)return null;for(var o=t(n,e),u=t(o,"kise").split(""),f=t(o,"snow").split(""),i=0;i<32;i++)isNaN(f[i])&&"sunlovesnow1990090127xykab".search(u[i])>-1&&(f[i]=f[i].toUpperCase());var c=f.join(""),a=c.slice(0,1);return(isNaN(a)?a:"K")+c.slice(1,r)}});
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n=n||self).fpCode=e()}(this,function(){var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(e,t){return function(e){!function(n){function t(n,e){var t=(65535&n)+(65535&e);return(n>>16)+(e>>16)+(t>>16)<<16|65535&t}function r(n,e,r,o,f,u){return t((i=t(t(e,n),t(o,u)))<<(c=f)|i>>>32-c,r);var i,c}function o(n,e,t,o,f,u,i){return r(e&t|~e&o,n,e,f,u,i)}function f(n,e,t,o,f,u,i){return r(e&o|t&~o,n,e,f,u,i)}function u(n,e,t,o,f,u,i){return r(e^t^o,n,e,f,u,i)}function i(n,e,t,o,f,u,i){return r(t^(e|~o),n,e,f,u,i)}function c(n,e){var r,c,a,d,l;n[e>>5]|=128<<e%32,n[14+(e+64>>>9<<4)]=e;var s=1732584193,p=-271733879,h=-1732584194,v=271733878;for(r=0;r<n.length;r+=16)c=s,a=p,d=h,l=v,s=o(s,p,h,v,n[r],7,-680876936),v=o(v,s,p,h,n[r+1],12,-389564586),h=o(h,v,s,p,n[r+2],17,606105819),p=o(p,h,v,s,n[r+3],22,-1044525330),s=o(s,p,h,v,n[r+4],7,-176418897),v=o(v,s,p,h,n[r+5],12,1200080426),h=o(h,v,s,p,n[r+6],17,-1473231341),p=o(p,h,v,s,n[r+7],22,-45705983),s=o(s,p,h,v,n[r+8],7,1770035416),v=o(v,s,p,h,n[r+9],12,-1958414417),h=o(h,v,s,p,n[r+10],17,-42063),p=o(p,h,v,s,n[r+11],22,-1990404162),s=o(s,p,h,v,n[r+12],7,1804603682),v=o(v,s,p,h,n[r+13],12,-40341101),h=o(h,v,s,p,n[r+14],17,-1502002290),s=f(s,p=o(p,h,v,s,n[r+15],22,1236535329),h,v,n[r+1],5,-165796510),v=f(v,s,p,h,n[r+6],9,-1069501632),h=f(h,v,s,p,n[r+11],14,643717713),p=f(p,h,v,s,n[r],20,-373897302),s=f(s,p,h,v,n[r+5],5,-701558691),v=f(v,s,p,h,n[r+10],9,38016083),h=f(h,v,s,p,n[r+15],14,-660478335),p=f(p,h,v,s,n[r+4],20,-405537848),s=f(s,p,h,v,n[r+9],5,568446438),v=f(v,s,p,h,n[r+14],9,-1019803690),h=f(h,v,s,p,n[r+3],14,-187363961),p=f(p,h,v,s,n[r+8],20,1163531501),s=f(s,p,h,v,n[r+13],5,-1444681467),v=f(v,s,p,h,n[r+2],9,-51403784),h=f(h,v,s,p,n[r+7],14,1735328473),s=u(s,p=f(p,h,v,s,n[r+12],20,-1926607734),h,v,n[r+5],4,-378558),v=u(v,s,p,h,n[r+8],11,-2022574463),h=u(h,v,s,p,n[r+11],16,1839030562),p=u(p,h,v,s,n[r+14],23,-35309556),s=u(s,p,h,v,n[r+1],4,-1530992060),v=u(v,s,p,h,n[r+4],11,1272893353),h=u(h,v,s,p,n[r+7],16,-155497632),p=u(p,h,v,s,n[r+10],23,-1094730640),s=u(s,p,h,v,n[r+13],4,681279174),v=u(v,s,p,h,n[r],11,-358537222),h=u(h,v,s,p,n[r+3],16,-722521979),p=u(p,h,v,s,n[r+6],23,76029189),s=u(s,p,h,v,n[r+9],4,-640364487),v=u(v,s,p,h,n[r+12],11,-421815835),h=u(h,v,s,p,n[r+15],16,530742520),s=i(s,p=u(p,h,v,s,n[r+2],23,-995338651),h,v,n[r],6,-198630844),v=i(v,s,p,h,n[r+7],10,1126891415),h=i(h,v,s,p,n[r+14],15,-1416354905),p=i(p,h,v,s,n[r+5],21,-57434055),s=i(s,p,h,v,n[r+12],6,1700485571),v=i(v,s,p,h,n[r+3],10,-1894986606),h=i(h,v,s,p,n[r+10],15,-1051523),p=i(p,h,v,s,n[r+1],21,-2054922799),s=i(s,p,h,v,n[r+8],6,1873313359),v=i(v,s,p,h,n[r+15],10,-30611744),h=i(h,v,s,p,n[r+6],15,-1560198380),p=i(p,h,v,s,n[r+13],21,1309151649),s=i(s,p,h,v,n[r+4],6,-145523070),v=i(v,s,p,h,n[r+11],10,-1120210379),h=i(h,v,s,p,n[r+2],15,718787259),p=i(p,h,v,s,n[r+9],21,-343485551),s=t(s,c),p=t(p,a),h=t(h,d),v=t(v,l);return[s,p,h,v]}function a(n){var e,t="",r=32*n.length;for(e=0;e<r;e+=8)t+=String.fromCharCode(n[e>>5]>>>e%32&255);return t}function d(n){var e,t=[];for(t[(n.length>>2)-1]=void 0,e=0;e<t.length;e+=1)t[e]=0;var r=8*n.length;for(e=0;e<r;e+=8)t[e>>5]|=(255&n.charCodeAt(e/8))<<e%32;return t}function l(n){var e,t,r="";for(t=0;t<n.length;t+=1)e=n.charCodeAt(t),r+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return r}function s(n){return unescape(encodeURIComponent(n))}function p(n){return function(n){return a(c(d(n),8*n.length))}(s(n))}function h(n,e){return function(n,e){var t,r,o=d(n),f=[],u=[];for(f[15]=u[15]=void 0,o.length>16&&(o=c(o,8*n.length)),t=0;t<16;t+=1)f[t]=909522486^o[t],u[t]=1549556828^o[t];return r=c(f.concat(d(e)),512+8*e.length),a(c(u.concat(r),640))}(s(n),s(e))}function v(n,e,t){return e?t?h(e,n):l(h(e,n)):t?p(n):l(p(n))}e.exports?e.exports=v:n.md5=v}(n)}(t={exports:{}}),t.exports}();return function(n,t,r){void 0===r&&(r=16);for(var o=e(n,t),f=e(o,"kise").split(""),u=e(o,"snow").split(""),i=0;i<32;i++)isNaN(u[i])&&"sunlovesnow1990090127xykab".search(f[i])>-1&&(u[i]=u[i].toUpperCase());var c=u.join(""),a=c.slice(0,1);return(isNaN(a)?a:"K")+c.slice(1,r<2||r>32?16:r)}});
//# sourceMappingURL=flowerpassword.umd.js.map
{
"name": "flowerpassword.js",
"title": "flowerpassword.js",
"author": "xLsDg <xlsdg@qq.com> (https://xlsdg.org/)",
"bugs": {
"url": "https://github.com/xlsdg/flowerpassword.js/issues"
},
"dependencies": {
"blueimp-md5": "^2.16.0"
},
"description": "Flower Password implementation for JavaScript",
"version": "2.0.0",
"main": "dist/flowerpassword.js",
"umd:main": "dist/flowerpassword.umd.js",
"module": "dist/flowerpassword.m.js",
"source": "src/flowerpassword.js",
"devDependencies": {
"microbundle": "^0.12.0"
},
"esmodule": "dist/flowerpassword.modern.js",
"files": [

@@ -15,7 +19,2 @@ "dist",

"homepage": "https://github.com/xlsdg/flowerpassword.js",
"author": "xLsDg <xlsdg@qq.com> (https://blog.xlsdg.org/)",
"repository": {
"type": "git",
"url": "https://github.com/xlsdg/flowerpassword.js.git"
},
"keywords": [

@@ -29,14 +28,12 @@ "huami",

],
"bugs": {
"url": "https://github.com/xlsdg/flowerpassword.js/issues"
},
"license": "MIT",
"dependencies": {
"blueimp-md5": "latest"
"main": "dist/flowerpassword.js",
"module": "dist/flowerpassword.m.js",
"name": "flowerpassword.js",
"repository": {
"type": "git",
"url": "https://github.com/xlsdg/flowerpassword.js.git"
},
"devDependencies": {
"microbundle": "^0.9.0"
},
"scripts": {
"build": "microbundle --name fpCode --external blueimp-md5=md5",
"build": "microbundle --name fpCode --external all",
"dev": "microbundle watch",

@@ -46,3 +43,8 @@ "release:major": "npm version major && npm publish",

"release:patch": "npm version patch && npm publish"
}
},
"source": "src/flowerpassword.ts",
"title": "flowerpassword.js",
"types": "dist/flowerpassword.d.ts",
"umd:main": "dist/flowerpassword.umd.js",
"version": "3.0.1"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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