{
  "name": "crypto.password.verify",
  "description": "Verifies a password against a hash",
  "signature": {
    "input": {
      "kind": "password,text",
      "description": "Plaintext password to verify",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "children": {
      "hash": {
        "type": "string",
        "kind": "password-hash",
        "description": "BCrypt password hash produced by [crypto.password.hash]",
        "required": true,
        "mode": "ValueOrExpression",
        "cardinality": "ExactlyOne",
        "role": "Option",
        "projection": "Value"
      }
    },
    "output": {
      "mode": "Value",
      "kind": "boolean",
      "description": "Returns true if the password matches the supplied hash"
    }
  }
}
