Patch pwd to convert hash into base64