Comments (1)
function makeSalt(length: number): string {
const possibleChar = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890'.split('')
let salt = '';
for(let i = 0; i < length; i++) {
salt += possibleChar[Math.floor(Math.random() * possibleChar.length)];
}
return salt;
}
from js-sha256.
Related Issues (20)
- Different Result with sha256.hmac HOT 1
- Conflict with requirejs HOT 11
- Rollupjs build complains about the use of eval in this library. HOT 7
- Hmac update question HOT 2
- Outdated typescript definition HOT 6
- Example for File Hash SHA256 ? HOT 1
- One of the test cases for HMAC is "wrong" HOT 1
- Library does not work under strict Content-Security-Policy HOT 2
- Different output on online-tools and while using the lib HOT 2
- How fast is it compared to native ? HOT 3
- When will the version be updated? How often is the update? HOT 3
- How to decrypt HOT 4
- 同学,您这个项目引入了22个开源组件,存在3个漏洞,辛苦升级一下 HOT 1
- Deprecate library and reccomend standardized APIs HOT 12
- Google Chrome 115.0.5790.102 produces incorrect SHA-256 hashes HOT 21
- Sha256
- Generates incorrect hash in some cases HOT 2
- Vend ESM Please
- Set up GitHub release action / provenance
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-sha256.