Implements ROT13 encryption for email, resolves #1

This commit is contained in:
Jean Viscogliosi-Pate 2024-08-01 16:00:16 -07:00
parent 4d71562004
commit 00f7157d31
6 changed files with 9 additions and 34 deletions

View File

@ -1,5 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="30" height="30" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-mail" id="email">
<title>Mail</title>
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
<polyline points="22,6 12,13 2,6"></polyline>
</svg>

Before

Width:  |  Height:  |  Size: 401 B

View File

@ -1,13 +0,0 @@
<svg id="linkedin" fill="currentColor" height="800px" width="800px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 310 310" xml:space="preserve">
<g id="XMLID_801_">
<path id="XMLID_802_" d="M72.16,99.73H9.927c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5H72.16c2.762,0,5-2.238,5-5V104.73
C77.16,101.969,74.922,99.73,72.16,99.73z"/>
<path id="XMLID_803_" d="M41.066,0.341C18.422,0.341,0,18.743,0,41.362C0,63.991,18.422,82.4,41.066,82.4
c22.626,0,41.033-18.41,41.033-41.038C82.1,18.743,63.692,0.341,41.066,0.341z"/>
<path id="XMLID_804_" d="M230.454,94.761c-24.995,0-43.472,10.745-54.679,22.954V104.73c0-2.761-2.238-5-5-5h-59.599
c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5h62.097c2.762,0,5-2.238,5-5v-98.918c0-33.333,9.054-46.319,32.29-46.319
c25.306,0,27.317,20.818,27.317,48.034v97.204c0,2.762,2.238,5,5,5H305c2.762,0,5-2.238,5-5V194.995
C310,145.43,300.549,94.761,230.454,94.761z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 979 B

View File

@ -1,5 +0,0 @@
<svg id="mastodon" role="img" viewBox="0 0 24 24" width="30" height="30" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
<title>Mastodon</title>
<path
d="M23.268 5.313c-.35-2.578-2.617-4.61-5.304-5.004C17.51.242 15.792 0 11.813 0h-.03c-3.98 0-4.835.242-5.288.309C3.882.692 1.496 2.518.917 5.127.64 6.412.61 7.837.661 9.143c.074 1.874.088 3.745.26 5.611.118 1.24.325 2.47.62 3.68.55 2.237 2.777 4.098 4.96 4.857 2.336.792 4.849.923 7.256.38.265-.061.527-.132.786-.213.585-.184 1.27-.39 1.774-.753a.057.057 0 0 0 .023-.043v-1.809a.052.052 0 0 0-.02-.041.053.053 0 0 0-.046-.01 20.282 20.282 0 0 1-4.709.545c-2.73 0-3.463-1.284-3.674-1.818a5.593 5.593 0 0 1-.319-1.433.053.053 0 0 1 .066-.054c1.517.363 3.072.546 4.632.546.376 0 .75 0 1.125-.01 1.57-.044 3.224-.124 4.768-.422.038-.008.077-.015.11-.024 2.435-.464 4.753-1.92 4.989-5.604.008-.145.03-1.52.03-1.67.002-.512.167-3.63-.024-5.545zm-3.748 9.195h-2.561V8.29c0-1.309-.55-1.976-1.67-1.976-1.23 0-1.846.79-1.846 2.35v3.403h-2.546V8.663c0-1.56-.617-2.35-1.848-2.35-1.112 0-1.668.668-1.67 1.977v6.218H4.822V8.102c0-1.31.337-2.35 1.011-3.12.696-.77 1.608-1.164 2.74-1.164 1.311 0 2.302.5 2.962 1.498l.638 1.06.638-1.06c.66-.999 1.65-1.498 2.96-1.498 1.13 0 2.043.395 2.74 1.164.675.77 1.012 1.81 1.012 3.12z" />
</svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1,5 +0,0 @@
<svg id="matrix" role="img" viewBox="0 0 24 24" width="30" height="30" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
<title>Matrix</title>
<path
d="M.632.55v22.9H2.28V24H0V0h2.28v.55zm7.043 7.26v1.157h.033c.309-.443.683-.784 1.117-1.024.433-.245.936-.365 1.5-.365.54 0 1.033.107 1.481.314.448.208.785.582 1.02 1.108.254-.374.6-.706 1.034-.992.434-.287.95-.43 1.546-.43.453 0 .872.056 1.26.167.388.11.716.286.993.53.276.245.489.559.646.951.152.392.23.863.23 1.417v5.728h-2.349V11.52c0-.286-.01-.559-.032-.812a1.755 1.755 0 0 0-.18-.66 1.106 1.106 0 0 0-.438-.448c-.194-.11-.457-.166-.785-.166-.332 0-.6.064-.803.189a1.38 1.38 0 0 0-.48.499 1.946 1.946 0 0 0-.231.696 5.56 5.56 0 0 0-.06.785v4.768h-2.35v-4.8c0-.254-.004-.503-.018-.752a2.074 2.074 0 0 0-.143-.688 1.052 1.052 0 0 0-.415-.503c-.194-.125-.476-.19-.854-.19-.111 0-.259.024-.439.074-.18.051-.36.143-.53.282-.171.138-.319.337-.439.595-.12.259-.18.6-.18 1.02v4.966H5.46V7.81zm15.693 15.64V.55H21.72V0H24v24h-2.28v-.55z" />
</svg>

Before

Width:  |  Height:  |  Size: 1015 B

View File

@ -58,8 +58,9 @@
"type": "text", "type": "text",
"default": "Contact me!" "default": "Contact me!"
}, },
"email_address": { "email_address_encrypted_with_rot13": {
"type": "text" "type": "text",
"default": "https://rot13.com/"
}, },
"mastodon_link": { "mastodon_link": {
"type": "text" "type": "text"

View File

@ -1,8 +1,10 @@
<div class="social-media"> <div class="social-media">
{{#if @custom.email_address}} {{#if @custom.email_address_encrypted_with_rot13}}
<a class="social-icon" alt="Email" href={{@custom.email_address}}> {{!-- Email and icon text is encrypted in ROT13 to prevent scraping from bots --}}
{{> "icons/email"}} <script type="text/javascript">
</a> document.write("<n pynff=\"fbpvny-vpba\" nyg=\"Rznvy\" uers=\"znvygb:{{@custom.email_address_encrypted_with_rot13}}\"> <fit kzyaf=\"uggc://jjj.j3.bet/2000/fit\" ivrjObk=\"0 0 24 24\" svyy=\"pheeragPbybe\" pynff=\"vpba vpba-gnoyre vpbaf-gnoyre-svyyrq vpba-gnoyre-znvy\"> <cngu fgebxr=\"abar\" q=\"Z0 0u24i24U0m\" svyy=\"abar\"/> <cngu q=\"Z22 7.535i9.465n3 3 0 0 1 -2.824 2.995y-.176 .005u-14n3 3 0 0 1 -2.995 -2.824y-.005 -.176i-9.465y9.445 6.297y.116 .066n1 1 0 0 0 .878 0y.116 -.066y9.445 -6.297m\" /> <cngu q=\"Z19 4p1.08 0 2.027 .57 2.555 1.427y-9.555 6.37y-9.555 -6.37n2.999 2.999 0 0 1 2.354 -1.42y.201 -.007u14m\"/> </fit> </n>".replace(/[a-zA-Z]/g,
function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);}));
</script>
{{/if}} {{/if}}
{{#if @custom.mastodon_link}} {{#if @custom.mastodon_link}}