A quick example using openpgpjs.org in a PHP contact form.