Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cmccandless/safepass

Check passwords against https://haveibeenpwned.com/API/v2#PwnedPasswords
https://github.com/cmccandless/safepass

password-safety python python3 security

Last synced: 1 day ago
JSON representation

Check passwords against https://haveibeenpwned.com/API/v2#PwnedPasswords

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/cmccandless/safepass.svg?branch=master)](https://travis-ci.org/cmccandless/safepass)[![PyPI version](https://badge.fury.io/py/safepass.svg)](https://badge.fury.io/py/safepass)[![Updates](https://pyup.io/repos/github/cmccandless/safepass/shield.svg)](https://pyup.io/repos/github/cmccandless/safepass/)[![Python 3](https://pyup.io/repos/github/cmccandless/safepass/python-3-shield.svg)](https://pyup.io/repos/github/cmccandless/safepass/)

# safepass
Check passwords against https://haveibeenpwned.com/API/v2#PwnedPasswords

## Usage

### For humans

```bash
$ safepass
Password:
NOT SAFE!
$ echo $?
1
$ safepass
Password:
SAFE!
$ echo $?
0
```

### For scripting

*Note: scripting mode intended for situations where command history is not saved. Please use above interactive mode if checking directly in command line.*

`$ safepass $PASSWORD`

### API

```bash
>>> from safepass import safepass
>>> result=safepass(PWNED_PASSWORD)
NOT SAFE!
>>> result
False
>>> result=safepass(NOT_PWNED_PASSWORD)
SAFE!
>>> result
True
```