Skip to content

Instantly share code, notes, and snippets.

@nicholashoule
Created June 6, 2019 20:03
Show Gist options
  • Save nicholashoule/f0e89c5547c6ac2674ea943148bc619d to your computer and use it in GitHub Desktop.
Save nicholashoule/f0e89c5547c6ac2674ea943148bc619d to your computer and use it in GitHub Desktop.

Revisions

  1. nicholashoule created this gist Jun 6, 2019.
    18 changes: 18 additions & 0 deletions sha512hash.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    ## sha512 hash

    ##### Algorithm used:
    ```
    $1$, MD5
    $2a$, Blowfish
    $2y$, Blowfish
    $5$, SHA-256
    $6$, SHA-512
    ```

    ##### python3:

    Python 3.3+ includes mksalt in crypt.

    ```
    python3 -c 'import crypt; print(crypt.crypt("Th3PA$$w0rdy0uwaNt!", crypt.mksalt(crypt.METHOD_SHA512)))'
    ```