extends ../templates/base.pug

block content
  section.narrow
    h1 bcrypt utility

    h2 Generate bcrypt hash
    form#form-util-bcrypt-generate(method='post')
      p
        | This tool generates 
        a(href='https://en.wikipedia.org/wiki/Bcrypt') bcrypt
        |  hashes useful to 
        a(href='https://docs.keyoxide.org/understanding-keyoxide/identity-proof-formats/#Hashed_URI') conceal identity proofs
        | . Be sure to include "openpgp4fpr:" for a valid proof!
      h3 Input
      input.input.half-width(type='text' name='input' placeholder='openpgp4fpr:…' value=input)
      h3 Hash
      pre
        code.output.full-width.select-all Waiting for input…
      p.feedback

    h2 Verify bcrypt hash
    form#form-util-bcrypt-verify(method='post')
      h3 Input
      input.input.half-width(type='text' name='input' placeholder='openpgp4fpr:…' value=input)
      h3 Hash
      input.hash.half-width(type='text' name='hash' placeholder='$2a$…')
      h3 Output
      pre
        code.output.full-width Waiting for input…