password function shim for php versions < 5.5