Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bcrypt "error": "Range check error" #5

Closed
Iaster opened this issue Apr 19, 2022 · 4 comments
Closed

Bcrypt "error": "Range check error" #5

Iaster opened this issue Apr 19, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@Iaster
Copy link

Iaster commented Apr 19, 2022

depurando o projeto cheguei na procedure TBCryptImpl.MakeSalt. No bloco :-

while I <= Length(LRandomTemp) do
begin
LByteArray[i] := Ord(LRandomTemp[i + 1]); <--- esta gerando erro aqui, pois o length do LRandom está menor
Inc(i);
end;

Para resolver eu alterei a linha while para ---> "while I < Length(LRandomTemp) do"

@viniciussanchez viniciussanchez added the bug Something isn't working label Apr 19, 2022
@viniciussanchez
Copy link
Owner

Você está usando a versão 1.0.7?
Qual a versão do Delphi que você está utilizando?

@Iaster
Copy link
Author

Iaster commented Apr 19, 2022

estou usando o Delhpi 11.0 a versão do Bcrypt é a 0.1.7

@Iaster
Copy link
Author

Iaster commented Apr 19, 2022 via email

@andrewsbejatto
Copy link
Contributor

Boa tarde, aqui comigo está dando o mesmo erro, estou usando Delphi 11.1 e última versão tbm desse projeto.
Fiz a modificação que o laster informou e deu certo!

andrewsbejatto added a commit to andrewsbejatto/bcrypt that referenced this issue Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants