V
V
vavan22017-05-18 00:11:45
Delphi
vavan2, 2017-05-18 00:11:45

Using native Bcrypt salt in Delphi?

How to use own salt when encrypting Bcrypt delphi?
For example, let the salt be like this OOv2wLxbNjUxVcc1sjysau I
use this library
https://github.com/JoseJimeniz/bcrypt-for-delphi

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey S., 2017-05-18
@Winsik

Look at the code, for an example on the function TBCrypt.SelfTestGM:

salt := TBCrypt.GenerateSalt;
s55 := TBCrypt.HashPassword(Copy(testPassword, 1, 55), salt, 4);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question