Giter Site home page Giter Site logo

linux-password-hash's Introduction

Linux Password Hash (written in Python)

The idea behind this script is to allow for system administrators to hash people's passwords without giving them access to the server they need the password on.

I've seen some scary techniques in the past, including but not limited to:

  • Giving out passwords
  • Giving someone access to a Linux box to type the password
  • Making temp passwords and then sending em via e-mail or PostIt

This essentially diminishes those techniques, because while we are letting that other person type their password using getpass(), we're never seeing the password (as a Linux Sys Admin), and we're just getting the final SHA-512 hash, with a random Salt.

This will be a limited use case, because it's designed to be used for SSH/e-mail passwords, assuming you use Linux user auth for your e-mail server (most MTAs support this). However, it is used quite often in the groups I'm in so, here's to releasing this quick script.

As always, questions/comments are appreciated.

Much Love,

Dave.

Using the Sucker

Pretty easy. If you're running on a Linux system, just use chmod +x passwordhasher.py to make the file executable, and then run ./passwordhasher.py. It will ask for a password, and then a confirmation password. Assuming you get everything right, it will spit out a hash ready for usage in your /etc/shadow file.

I may have added some neat quotes too. You're welcome.

linux-password-hash's People

Contributors

drussell393 avatar

Stargazers

Michal avatar

Watchers

James Cloos avatar  avatar

Forkers

rvasile16

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.