{"repo":"dcodeIO/bcrypt.js","free":true,"listed":false,"github":"https://github.com/dcodeIO/bcrypt.js","clone":"git clone https://github.com/dcodeIO/bcrypt.js.git","description":"Optimized bcrypt in JavaScript with zero dependencies, with TypeScript support.","language":"JavaScript","stars":3795,"topics":["javascript","bcrypt","authentication"],"license":null,"category":"auth-billing-email","readme_excerpt":"bcrypt.js Optimized bcrypt in JavaScript with zero dependencies, with TypeScript support. Compatible to the C++ bcrypt binding on Node.js and also working in the browser. Security considerations Besides incorporating a salt to protect against rainbow table attacks, bcrypt is an adaptive function: over time, the iteration count can be increased to make it slower, so it remains resistant to brute-force search attacks even with increasing computation power. (see) While bcrypt.js is compatible to the C++ bcrypt binding, it is written in pure JavaScript and thus slower (about 30%), effectively reducing the number of iterations that can be processed in an equal time span. The maximum input length is 72 bytes (note that UTF-8 encoded characters use up to 4 bytes) and the length of generated hashes is 60 characters. Note that maximum input length is not implicitly checked by the library for compatibility with the C++ binding on Node.js, but should be checked with bcrypt.truncates(password) where necessary. Usage The package exports an ECMAScript module with an UMD fallback. Usage with a CDN - From GitHub via jsDelivr: https://cdn.jsdelivr.net/gh/dcodeIO/bcrypt.js@TAG/index.js (ESM) - From npm via jsDelivr: https://cdn.jsdelivr.net/npm/bcryptjs@VERSION/index.js (ESM) https://cdn.jsdelivr.net/npm/bcryptjs@VERSION/umd/index.js (UMD) - From npm via unpkg: https://unpkg.com/bcryptjs@VERSION/index.js (ESM) https://unpkg.com/bcryptjs@VERSION/umd/index.js (UMD) Replace TAG respectively VERSI","default_branch":null,"files":null,"tree":[],"storefront":"/r/dcodeIO","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dcodeIO/bcrypt.js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}