Since introducing Rainbow tables and using only hashed passwords (ex: MD5) for stored passwords in a database is not the best secure way .
When people talk about salty hashes, always use it that way hash(password . salt)or even hash(hash(password) . salt).
hash(password . salt)
hash(hash(password) . salt)
I don’t know why to use salt and add an extra entry for each password to store salt? Why don't we just use hash(hash(password))or even hash(hash(hash(password)))?
hash(hash(password))
hash(hash(hash(password)))
Is it safer to place salt? or just a feeling more complicated?
( (pwd)) , (pwd) ( , ), . , , , .
( ) . , , , .
, .
8 , 100 000 000 . , . " -", 100 000 000 - .
, 4- . 100 000 000 1 000 000 000 000... 10 000 , 3 .
, , , , .
EDIT: , , , 100 000 000 . , . 100 000 000 , , . , . , : , . , .
, , . , , : hash(hash(password)).
, , , . , .
- , . :
function hashPassword(password, salt) { result = hash(salt . password) for (i = 0; i < 1000; i++) { result = hash(salt . result) } return result }
1000 . , , - - . 1000- , 100 . 18 , 2000.
, . , .
. .
, . , , , PBKDF2
, - .
, . , , , , . , , .
Rainbow .
- , . ( ) . , . , , , , .
- . , , .
, , . ( ).
, , -. , .
stackoverflow , . . PHP.
Source: https://habr.com/ru/post/1781109/More articles:There is no common interface with java.sql.ResultSet, CallableStatement, SQLInput - javaresizing tabs in tabbed panel - javaIs there any truncation for nested classes? - c ++Getting 500 500 response body with flex - flexasp.net diagram: final series getting cut off when installing .AxisX.Maximum - asp.netQuestion in parallel programming MPI_Gather - parallel-processingкак предотвратить PHP: XSLTPпроцессор от генерации тегов и? - html-parsinghttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1781112/is-useless-to-do-unit-test-after-writing-code&usg=ALkJrhgs7WnL12Ibqpq1qQAC2FNKxrjOEAВыбор int и деление с использованием MYSQL - mysqlcompare identical array values - arraysAll Articles