Skip to content

Bug en toba_hash.php #194

@emitowww

Description

@emitowww

Buenas,

En la funcion getSalt() de la clase toba_hash cuando arma el salt tanto para el caso de SHA256 como SHA512 no está utilizando las vueltas que calcula en la linea anterior.

$salt = sprintf('$6$rounds=%d$', $this->rounds);

$salt = sprintf('$5$rounds=%d$', $this->rounds);

Debería ser

$salt = sprintf('$6$rounds=%d$', $vueltas);

y

$salt = sprintf('$5$rounds=%d$', $vueltas);

... respectivamente.

Saludos!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions