publish-encrypted.html 433 B

12345678910111213
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Publish to ntfy.sh</title>
  6. </head>
  7. <body>
  8. <input id="password" placeholder="Topic password"/>
  9. <button onclick="publish()">Publish encrypted message</button>
  10. </body>
  11. <script async src="https://unpkg.com/jose@4.8.3/dist/browser/jwe/compact/encrypt.js" type="module"></script>
  12. <script async src="publish-encrypted.js" type="module"></script>
  13. </html>