You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect this to print $sha256$8OTC92xYkW7CWPJGhRvqCR0U1CR6L8PhhpRGGxgW4Ts, but it only prints $sha256.
I need to specify a salt to get the hash to print. (Also note that un-commenting the salt line will serialize with a zero-length salt, i.e., $sha256$$ prefix.)
The text was updated successfully, but these errors were encountered:
My memory might be a little rusty on this, as I wrote it 4y+ ago, but I think it was a concoius decision to limit the API as I didn't forsee the use case you are describing.
I found P-H-C/phc-string-format#3, so I guess I did think about whether to make it optional or not, and I preferred to play it safe I guess.
Feel free to contribute and change this, I'll be happy to review it.
The specification says that the
salt
option is optional:However, this package requires it to be defined to output the hash.
Here's an example:
I expect this to print
$sha256$8OTC92xYkW7CWPJGhRvqCR0U1CR6L8PhhpRGGxgW4Ts
, but it only prints$sha256
.I need to specify a
salt
to get thehash
to print. (Also note that un-commenting thesalt
line will serialize with a zero-length salt, i.e.,$sha256$$
prefix.)The text was updated successfully, but these errors were encountered: