Difference between revisions of "Password Hash generate"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (Created page with "<syntaxhighlight lang="bash"> openssl passwd -1 </syntaxhighlight><syntaxhighlight lang="bash"> openssl passwd -1 -salt yoursalt </syntaxhighlight><syntaxhighlight lang="bash"...") Tag: visualeditor |
Rafahsolis (talk | contribs) m Tag: visualeditor |
||
| Line 7: | Line 7: | ||
</syntaxhighlight><syntaxhighlight lang="bash"> | </syntaxhighlight><syntaxhighlight lang="bash"> | ||
python -c "import crypt; print crypt.crypt('joske')" | python -c "import crypt; print crypt.crypt('joske')" | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | == SHA512 == | ||
| + | Bash<syntaxhighlight lang="bash"> | ||
| + | echo -n dabadabadaba | sha512sum | ||
| + | </syntaxhighlight>Python3<syntaxhighlight lang="python3"> | ||
| + | import hashlib | ||
| + | m = hashlib.sha512() | ||
| + | m.update(b"dabadabadaba") | ||
| + | print(m.hexdigest()) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 16:53, 21 September 2021
openssl passwd -1
openssl passwd -1 -salt yoursalt
echo 'joske' | openssl passwd -1 -stdin
python -c "import crypt; print crypt.crypt('joske')"
SHA512[edit]
Bash
echo -n dabadabadaba | sha512sum
Python3
import hashlib
m = hashlib.sha512()
m.update(b"dabadabadaba")
print(m.hexdigest())