Re: crypt function crash on postgresql 9.3.20 and 10
От | David G. Johnston |
---|---|
Тема | Re: crypt function crash on postgresql 9.3.20 and 10 |
Дата | |
Msg-id | CAKFQuwZBcDJbe2TTqVq1bu=8fU17S_6gV5vSKmeZ9KwdNP=40A@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: crypt function crash on postgresql 9.3.20 and 10 (Pavan Teja <pavan.postgresdba@gmail.com>) |
Ответы |
Re: crypt function crash on postgresql 9.3.20 and 10
|
Список | pgsql-bugs |
On Feb 2, 2018 8:15 PM, "Mike Porter" <mike@udel.edu> wrote:On Fri, 2 Feb 2018, Михаил Манерко wrote:The second argument is the salt, and you have not passed enough bitsIf you send an asterisk in the crypt function, the function crashes.
example
i=# select crypt('123','*');
ОШИБКА: invalid salt
i=#
for the default hash type.
i=> select crypt( '123', 'aa' );
crypt
---------------
aamrgyQfDFSHw
(1 row)Hi,Yeah Mike what u said is correct, the consistency of bits for generation of salt depends on algorithms like blow fish, md5 etc
You sure? Don't have time to show otherwise but the docs suggest what you are doing is validating a store encrypted password as opposed to encrypting the provided one.
David J.
В списке pgsql-bugs по дате отправления: