small pixel drawing of a pufferfish j3s.sh

templates/age.html

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{{define "title"}}tools/age{{end}}
{{ define "body" }}
<h3>tools/age</h3>
<p>use this form to encrypt age data for people, if you want. my public key is <pre>age12amwzaps3lfy5y7kup5h730d2alfcpxlrnahgxv7u4a877hl9c8s6h2wuf</pre></p>
<form method="POST">
    <label>age public key</label><br />
    <input type="text" name="pubkey" size="60" required><br />
    <label>text to encrypt</label><br />
    <textarea name="message" rows="10" cols="60" required></textarea><br />
    <input type="submit">
</form>
{{ if . }}
<h3>result</h3>
<pre>
{{ . }}
</pre>
{{ end }}
{{ end }}