Simple Python /etc/shadow hash Generator Implementation

For python2, use this

python -c 'import crypt; print crypt.crypt("password", "$6$salt-salt-whatever$")'


For python3, use this:

python -c 'import crypt; print(crypt.crypt("password","$6$salt-salt-whatever$"))'