Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: BcryptNet/bcrypt.net
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: BcryptNet/bcrypt.net
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 6 commits
  • 8 files changed
  • 1 contributor

Commits on Apr 14, 2020

  1. BREAKING CHANGE: Drop legacy hash support, split keying for enhanced …

    …so nul/empty (rev a+) gets attached to the SHA hash. Should be consistent with other languages.
    ChrisMcKee committed Apr 14, 2020
    Configuration menu
    Copy the full SHA
    94f83db View commit details
    Browse the repository at this point in the history
  2. Add test vectors created in PassLib using standard Python hashing code

    ```python
    import base64
    import hashlib
    from passlib.hash import bcrypt
    
    keys = ["", "a", "abcdefghijklmnopqrstuvwxyz", "~!@#$%^&*()      ~!@#$%^&*()PNBFRD"]
    
    for key in keys:
        password = key
        hashstring = hashlib.sha256(password.encode('utf-8')).digest()
        encodedBytes = base64.b64encode(hashstring)
        encodedStr = str(encodedBytes, "utf-8")
        print(bcrypt.using(rounds=7).hash(encodedStr))
    
    ```
    ChrisMcKee committed Apr 14, 2020
    Configuration menu
    Copy the full SHA
    cba9d75 View commit details
    Browse the repository at this point in the history
  3. Bump Major

    ChrisMcKee committed Apr 14, 2020
    Configuration menu
    Copy the full SHA
    a0a72b5 View commit details
    Browse the repository at this point in the history
  4. V3.x legacy migration functionality

    Add ability to validate and hash using V4 interoperable method while maintaining default V3 behaviour
    ChrisMcKee committed Apr 14, 2020
    Configuration menu
    Copy the full SHA
    dbd8687 View commit details
    Browse the repository at this point in the history
  5. add php vectors

    ```php
    
    <?php
    
    $test = base64_encode(hash("sha256", "chipsn'dip" , true));
    
    print(password_hash($test,PASSWORD_DEFAULT));
    
    ```
    
    tested using http://phptester.net/
    ChrisMcKee committed Apr 14, 2020
    Configuration menu
    Copy the full SHA
    efff6a0 View commit details
    Browse the repository at this point in the history
  6. 3.5 packages

    ChrisMcKee committed Apr 14, 2020
    Configuration menu
    Copy the full SHA
    5031948 View commit details
    Browse the repository at this point in the history
Loading