Похожие чаты

Is there any built in package in nodejs for hashing

password? if not which package should i use that use salt so even same password get diff hash.

14 ответов

32 просмотра

Built in : scrypt + randomBytes

there is bcrypt, not inbuilt though

Mr-Thieves Автор вопроса
Mr-Thieves Автор вопроса
Richard | If you DM for support you PAY
there is bcrypt, not inbuilt though

thanks i found this but there is no salt in hash or may be i can't found it.

Mr Thieves
thanks i found this but there is no salt in hash o...

https://www.npmjs.com/package/bcrypt#to-hash-a-password

Mr Thieves
thanks i found this but there is no salt in hash o...

https://www.npmjs.com/package/bcrypt#to-hash-a-password-1

Mr-Thieves Автор вопроса
Richard | If you DM for support you PAY
@MrThieves salt can either be a string or the numb...

if i use number of rounds for example 100 it's take some seconds to build that?

Mr Thieves
if i use number of rounds for example 100 it's tak...

yeah, takes more time as the number increases, but you can provide your own salt

Mr-Thieves Автор вопроса
Richard | If you DM for support you PAY
yeah, takes more time as the number increases, but...

rounds=31: 2-3 days/hash that means if i use 31 i get my salt after 2 days?

Mr Thieves
rounds=31: 2-3 days/hash that means if i use 31 i ...

depends on your processor, but yes it's 2 ^31 iterations

Mr-Thieves Автор вопроса
Mr Thieves
so i should just use 10~15 rounds number. is that ...

10 is ok, but depends on your use case, you can always adjust later on

Mr-Thieves Автор вопроса
Richard | If you DM for support you PAY
10 is ok, but depends on your use case, you can al...

i just want to make sure that password is safe even if i saved password in localStorage and hacker get that password from browser can't found out what is the password.

Похожие вопросы

Обсуждают сегодня

Hey everyone! I won’t focus too much on what this person said (it’s clear they don’t understand the scope of what TF and TELOSX are achieving), but I’ll put it simply for thos...
Ana Ojeda
3
Hi did any of you experience a file error when download hex file for Windows?
Valya
17
как правильно удалить сддм? прописал в etc/portage.use/plasma-meta -sddm , но при обновлении юзов мне предлагает поставить lightdm (ещё лучше 😡), добавил туда - display-manage...
REDis
25
Всем привет! Имеется функция: function IsValidChar(ch: UTF8Char): Boolean; var i: Integer; ValidChars: AnsiString; begin ValidChars := 'abcdefghijklmnopqrstuvwxyzABCDE...
Евгений
44
Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
Also, scrolling at the history here, I see there was alot of hate towards kaspa.. is it still the case after they proved the history of the chain?
Gad Levy | AnyLog
11
Please I want to ask if my stake is 24% complete, what penalty will I pay if I end the stake?
Crypto Advocate
12
Коллеги, я тут для личных нужд пошел ставить MQTT сервер, пощупал mosquitto, но ужаснулся отсутствию такой банальности, как HTTP API для посмотреть список топиков. А тут что,...
Maksim Lapshin
14
Could the new Norse labs apps have just been called "VPN" instead of DVPN?
HDGVII
14
How will they work it out?
Max
14
Карта сайта