Skip to content

kokhoor/Service-Django-Auth

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages