'Javascript implementation of sha256_crypt
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?
Solution 1:[1]
You can try to convert the python directly to JS. Not gurentee to work though, it depends on convertor's quality.
- Copy python's module:
from passlib.hash import sha256_crypt
print sha256_crypt.__file__
- Convert python's module to JS
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!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | lior bakalo |
