Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Last active December 18, 2015 22:49
Show Gist options
  • Save tkuchiki/5856709 to your computer and use it in GitHub Desktop.
Save tkuchiki/5856709 to your computer and use it in GitHub Desktop.
/etc/shadow に保存される hash 値の生成方法(CentOS 6) [参考: http://serverfault.com/questions/330069/how-to-create-an-sha-512-hashed-password-for-shadow]
# Mac は $6$ に対応していないので使用不可
python -c 'import crypt; print crypt.crypt("PASSWORD", "$6$random_salt")';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment