Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am cgarvey on github.
  • I am cgarvey (https://keybase.io/cgarvey) on keybase.
  • I have a public key whose fingerprint is 9F0C AF67 CAE9 023D 09FE 6AEC 6981 FB2E 383A FE8F

To claim this, I am signing this object:

Verifying myself: My Bitcoin username is +cgarvey. https://onename.io/cgarvey
@cgarvey
cgarvey / pwd.php
Last active September 22, 2021 09:40
Utility PHP file to use WordPress' password utility to generate a hashed (and salted) version of a typed password. Why? So you can easily generate passwords for use in MySQL scripts / SQL command line, like resetting passwords or adding new users.
<?php
/*
Author
======
Author: Cathal Garvey.
Website: http://cgarvey.ie/
Help/Details Page: http://cgarvey.ie/blog/archive/2013/01/23/manually-generating-salted-hashed-wordpress-passwords/
Copyright