Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 1.06 KB

README.md

File metadata and controls

31 lines (17 loc) · 1.06 KB

SimplyScript Service: Django Auth

This service provide functions to encode and verify django auth password using Java.

Usage:

  1. Encode a password using default pbkdf2_sha256:

    my.com.solutionx.simplyscript_module.django_auth.PasswordEncoderDecoder.encode(password);

    Where:

    • password is a string containing password to encode
  2. Encode a password using selected hash:

    my.com.solutionx.simplyscript_module.django_auth.PasswordEncoderDecoder.encode(password, hash);

    Where:

    • password is a string containing password to encode
    • hash is a string containing hash to use. Currently supported hashers are (pbkdf2_sha256 and pbkdf2_sha1)
  3. Verify that a password is similar to an encoded password:

    my.com.solutionx.simplyscript_module.django_auth.PasswordEncoderDecoder.verifyPassword(password, hashed_password);

    Where:

    • password is a string containing password to be verified
    • hashed_password is a string containing hashed password to be verified against