2
Basically, I need something that works similar to $hash = Hash::make('string')
and Hash::check('string', $hash)
but that does not produce as big a result as (60 characters).
or
$hash = password_hash('string')
andpassword_verify('string', $hash)
with pure PHP
To generate a "token" from a string and then check whether the generated "token" corresponds to the generating string?
Why don’t you want a 60-character hash? It’s much safer than md5, each run generates a different hash, is efficient and testable. 60 characters does not affect performance.
– Marco Aurélio Deleu