GithubHelp home page GithubHelp logo

ssadler / djpass Goto Github PK

View Code? Open in Web Editor NEW

This project forked from racum/djpass

0.0 2.0 0.0 8 KB

A command-line tool to generate and verify passwords used in Django Project.

License: Other

Rust 100.00%

djpass's Introduction

djpass (Django Passwords)

Build Status

A command-line tool to generate and verify passwords used in Django Project.

Installation

You can compile from source, or install via cargo (requires version 0.6.0 or higher):

$ cargo install djpass

Usage

Generating a Password Hash

If you run it without arguments it will ask for a password:

$ djpass
Password: [password]
Hash: pbkdf2_sha256$24000$...

Passing the password as a single argument will return the hash:

$ djpass hello
Hash: pbkdf2_sha256$24000$...

You can also specify the algorithm used:

$ djpass hello -a sha1
Hash: sha1$hzPiRIKYykm8$23...

Algorithms:

  • PBKDF2 (default)
  • PBKDF2SHA1
  • BCryptSHA256
  • BCrypt
  • SHA1
  • MD5
  • UnsaltedSHA1
  • UnsaltedMD5
  • Crypt

The algorithm argument is case-insensitive.

Verifying a Password Hash

$ djpass hello 'sha1$hzPiRIKYykm8$23...'
Password ok.

If you pass an algorithm during verification it will be ignored.

Contributing

  • Be polite, I'm new to Rust, like almost everybody.
  • Don't go nuts with your mad-rust-skillz, legibility is a priority.
  • Always include a unit test.

License

Djpass is released under the 3-Clause BSD License.

tl;dr: "free to use as long as you credit me".

djpass's People

Contributors

racum avatar ssadler avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.