Skip to content

Instantly share code, notes, and snippets.

@fredeerock
Created May 28, 2019 03:33
Show Gist options
  • Save fredeerock/c1b38b954b09c38c52e8b2105070c6fa to your computer and use it in GitHub Desktop.
Save fredeerock/c1b38b954b09c38c52e8b2105070c6fa to your computer and use it in GitHub Desktop.
Create SHA256 Password
$(python -c 'import crypt,getpass;pw=getpass.getpass(); print(crypt.crypt(pw,crypt.mksalt(crypt.METHOD_SHA256))) if (pw==getpass.getpass("Confirm: ")) else exit()')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment