Reputation: 8670
I am looking to create/use a javascript implementation of passlib.hash.sha256_crypt where I can specify a salt and password and receive a hash that is in the $5${salt}${checksum}
format. However all of the javascript implementations I have seen return the output in 64bytes (like what this site returns).
Is there a javascript implementation that returns the $5${salt}${checksum}
format? Or at least a way I can convert to this format?
Upvotes: 1
Views: 110
Reputation: 450
You can try to convert the python directly to JS. Not gurentee to work though, it depends on convertor's quality.
from passlib.hash import sha256_crypt
print sha256_crypt.__file__
You can use this site, there are lots of free resources online.
I assume they use numpy, so the challenge might be finding a convertor that can handle numpy.
Good luck with your project!
Upvotes: 0