SHA256
204 lines
6.2 KiB
HTML
204 lines
6.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>whoswhip</title>
|
|
|
|
<meta name="description" content="i'm a fullstack developer from the United States">
|
|
<meta name="og:title" content="whoswhip">
|
|
<meta name="og:description" content="i'm a fullstack developer from the United States">
|
|
<meta name="og:image" content="/assets/pfp-large.jpg">
|
|
<link rel="canonical" href="https://whoswhip.dev">
|
|
<link rel="icon" href="/assets/pfp.webp">
|
|
<link rel="preload" href="/assets/FunnelSans-Regular.woff2" crossorigin>
|
|
<link rel="preload" href="/assets/pixelify-sans-regular-11px-square.woff2" crossorigin>
|
|
<script defer src="https://analytics.whoswhip.dev/script.js" data-website-id="5a44cf17-caa9-48e6-b213-6259bb015e59"
|
|
data-do-not-track="true"></script>
|
|
</head>
|
|
<style>
|
|
:root {
|
|
--text: #fff;
|
|
--text-hover: oklch(87% 0 none);
|
|
--bg: oklch(14.5% 0 none);
|
|
--border: oklch(20.5% 0 none);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
min-height: 100dvh;
|
|
background-color: var(--bg);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: var(--text);
|
|
margin: 0;
|
|
}
|
|
|
|
.main-content-wrapper {
|
|
width: 100%;
|
|
max-width: 55rem;
|
|
height: 100%;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Pixelify Sans";
|
|
src: url("/assets/pixelify-sans-regular-11px-square.woff2") format("woff2");
|
|
font-display: fallback;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Funnel Sans";
|
|
src: url("/assets/FunnelSans-Regular.woff2");
|
|
font-display: fallback;
|
|
}
|
|
|
|
.pixel {
|
|
font-family: "Pixelify Sans", sans-serif;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.funnel {
|
|
font-family: "Funnel Sans", sans-serif;
|
|
}
|
|
|
|
.header-wrapper {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 26px;
|
|
}
|
|
|
|
.pfp {
|
|
height: 2.5rem;
|
|
width: 2.5rem;
|
|
border-radius: 0.75rem;
|
|
border: var(--border) solid 1px;
|
|
}
|
|
|
|
a {
|
|
font-family: "Pixelify Sans", sans-serif;
|
|
color: var(--text)
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--text-hover)
|
|
}
|
|
|
|
.bio {
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
.links {
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
.link-separator {
|
|
padding-inline: 0.5rem;
|
|
font-family: "Pixelify Sans", sans-serif;
|
|
}
|
|
|
|
.local-time {
|
|
margin-left: auto;
|
|
font-size: 18px;
|
|
display: none;
|
|
}
|
|
|
|
@media (width <=48rem) {
|
|
.main-content-wrapper {
|
|
padding: 2rem;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<body>
|
|
<main class="main-content-wrapper">
|
|
<div class="header-wrapper">
|
|
<img class="pfp" src="/assets/pfp.webp" />
|
|
<h1 class="pixel">whoswhip / whip</h1>
|
|
<span class="local-time pixel" id="local-time" title="The time in my timezone.">00:00</span>
|
|
</div>
|
|
<p class="bio funnel">
|
|
i'm a fullstack developer from the United States, mainly working with c# and svelte, but i'm learning go.
|
|
i've been coding for about 4-6 years now
|
|
<br />
|
|
<br />
|
|
the project i've currently worked the most on is
|
|
<a href="https://github.com/whoswhip/Sharpbin">Sharpbin</a> (<a href="https://sharpbin.cc">live
|
|
instance</a>), a pastebin like website written in c# as the backend and sveltekit as the frontend. it's
|
|
been through quite a few revisions (3 so far) and has likely been the project i've learned the
|
|
most from.
|
|
<br />
|
|
<br />
|
|
aside from coding, i also enjoy playing games, reading, and listening to music: you can see my music
|
|
taste on my <a href="https://last.fm/user/whoswhip">last.fm</a>
|
|
</p>
|
|
|
|
<div class="links">
|
|
<a id="email">email</a>
|
|
<span class="link-separator">/</span>
|
|
<a rel="pgpkey" href="/public.asc">public key</a>
|
|
<span class="link-separator">/</span>
|
|
<a href="https://git.whoswhip.dev/whoswhip">gitea</a>
|
|
<span class="link-separator">/</span>
|
|
<a rel="me" href="https://github.com/whoswhip">github</a>
|
|
<span class="link-separator">/</span>
|
|
<a href="https://steamcommunity.com/id/whoswhip">steam</a>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
<script>
|
|
const timeElement = document.getElementById("local-time")
|
|
|
|
const key = new Uint8Array([53, 55, 98, 52, 52, 57, 50, 97, 99, 50, 51, 99, 101, 54, 57, 97, 54, 50, 99, 99, 51, 48, 55, 51, 48, 101, 99, 97, 55, 50, 50, 50, 48, 97, 52, 102, 55, 100, 52, 100, 57, 97, 102, 99, 49, 51, 48, 54, 50, 50, 101, 48, 48, 55, 99, 49, 48, 98, 99, 54, 50, 97, 101, 51,])
|
|
document.getElementById("email").href = xorDecrypt("WFYLWEBWCAIMXEcCBkJ5Fl5dEBRbWUcdVAAV", key)
|
|
|
|
|
|
function getTime() {
|
|
return new Date().toLocaleTimeString('en-GB', {
|
|
timeZone: 'America/Toronto',
|
|
hour: '2-digit',
|
|
minute: '2-digit',
|
|
hour12: false,
|
|
});
|
|
}
|
|
|
|
function updateTime() {
|
|
timeElement.textContent = getTime();
|
|
}
|
|
updateTime();
|
|
timeElement.style.display = "block";
|
|
setInterval(updateTime, 1000);
|
|
|
|
// https://xjavascript.com/blog/simple-javascript-encryption-decryption-without-using-key/
|
|
function xorDecrypt(encryptedBase64, secret) {
|
|
// Convert Base64 encrypted data back to bytes
|
|
const encryptedBytes = new Uint8Array(
|
|
atob(encryptedBase64).split("").map(char => char.charCodeAt(0))
|
|
);
|
|
|
|
// Convert secret to UTF-8 bytes
|
|
const encoder = new TextEncoder();
|
|
|
|
// XOR encrypted bytes with secret to get plaintext bytes
|
|
const decryptedBytes = encryptedBytes.map((byte, index) => {
|
|
const secretByte = secret[index % secret.length];
|
|
return byte ^ secretByte; // XOR again to decrypt
|
|
});
|
|
|
|
// Convert decrypted bytes back to string
|
|
const decoder = new TextDecoder();
|
|
return decoder.decode(decryptedBytes);
|
|
}
|
|
</script>
|
|
|
|
</html> |