Giter Club home page Giter Club logo

haveibeenpwned-sha1-query's Introduction

haveibeenpwned-sha1-query

Check a password securely in the Pwned Passwords database. Go to the page and input an SHA-1 to see if it is breached.

How to check your password

Generate the SHA-1 securely

  • Open a new Incognito window
  • Press F12 to open the developer toolbar
  • Go to the Network tab
  • Check the Offline checkbox
  • Go to the Console tab
  • Paste this code and press enter: (code from here)
async function sha1(message) {
  const msgBuffer = new TextEncoder('utf-8').encode(message);
  const hashBuffer = await crypto.subtle.digest('SHA-1', msgBuffer);
  const hashArray = Array.from(new Uint8Array(hashBuffer));
  const res = hashArray.map(b => ('00' + b.toString(16)).slice(-2)).join('');
  console.log(res);
}
  • Enter sha1("..."), substituting ... with your password, then press enter
  • You'll see a bunch of characters and numbers, similar to this: a9993e364706816aba3e25717850c26c9cd0d89d
  • This is the password's SHA-1 hash, copy it
  • Close the incognito window

Check the SHA-1

haveibeenpwned-sha1-query's People

Contributors

sashee avatar

Watchers

 avatar  avatar  avatar

Forkers

vireshmahajan

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.