Skip to content

Instantly share code, notes, and snippets.

@jamescarr
Created June 29, 2016 20:02
Show Gist options
  • Save jamescarr/a649f5fc626f2fe29fe7deb064d6ce83 to your computer and use it in GitHub Desktop.
Save jamescarr/a649f5fc626f2fe29fe7deb064d6ce83 to your computer and use it in GitHub Desktop.

On Ubuntu 14.04

python -c 'import crypt; print crypt.crypt("test", "$6$random_salt")'
$6$random_salt$BnOQxEG8Gk2rzFYwoWXjr59zLVYzwshvca5oV0PtU8fAfT4a571evgca.E0hLnYNCdfq//zw9YyQN33QtztI10

On OSX El Capitan

python -c 'import crypt; print crypt.crypt("test", "$6$random_salt")'                                                                                 ⏎ ✹ ✭
$6asQOJRqB1i2

What gives?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment