Skip to content

Instantly share code, notes, and snippets.

@mrekucci
mrekucci / keybase.md
Created March 13, 2019 15:27
Keybase proof

Keybase proof

I hereby claim:

  • I am mrekucci on github.
  • I am mrekucci (https://keybase.io/mrekucci) on keybase.
  • I have a public key ASDTVvGaOOrR4zXoYuXAY8zWGkl7NIZYsb4mWK63dI1m8go

To claim this, I am signing this object:

@mrekucci
mrekucci / password_check
Last active March 20, 2019 19:32
Check if password was pwned
#!/usr/bin/env bash
# Copyright (c) 2019, Peter Mrekaj. All rights reserved.
# Use of this source code is governed by a ISC-style license.
# Dirty one-liner: read -s passwd; hash=$(printf "%s" "${passwd}" | openssl sha1 -binary | xxd -p -u); curl -s "https://api.pwnedpasswords.com/range/${hash:0:5}" | grep -i "${hash:5}"
set -e
function usage() {