adding opgenpgp key

This commit is contained in:
2026-05-15 15:35:31 +02:00
parent 17cb23aa40
commit f0463229a1
15 changed files with 442 additions and 68 deletions
+1
View File
@@ -12,6 +12,7 @@
.angular .angular
node_modules node_modules
dist dist
public
.npm-cache .npm-cache
coverage coverage
.eslintcache .eslintcache
+1
View File
@@ -9,6 +9,7 @@
# Generierte Build- und Test-Ausgaben # Generierte Build- und Test-Ausgaben
/dist /dist
/coverage /coverage
/public
/src/assets/optimized /src/assets/optimized
# Betriebssystem-Dateileichen # Betriebssystem-Dateileichen
+36 -5
View File
@@ -17,12 +17,29 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:application", "builder": "@angular-devkit/build-angular:application",
"options": { "options": {
"outputPath": "dist", "outputPath": {
"index": "src/index.html", "base": "dist",
"browser": "browser",
"media": "media"
},
"outputMode": "static",
"index": {
"input": "src/index.html",
"output": "index.html",
"preloadInitial": true
},
"browser": "src/main.ts", "browser": "src/main.ts",
"server": false,
"polyfills": [], "polyfills": [],
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss", "inlineStyleLanguage": "scss",
"stylePreprocessorOptions": {
"includePaths": ["src"]
},
"security": {
"autoCsp": true
},
"clearScreen": false,
"assets": [ "assets": [
{ {
"glob": "**/*", "glob": "**/*",
@@ -35,7 +52,8 @@
} }
], ],
"styles": ["src/styles.scss"], "styles": ["src/styles.scss"],
"scripts": [] "scripts": [],
"serviceWorker": false
}, },
"configurations": { "configurations": {
"production": { "production": {
@@ -43,13 +61,16 @@
"scripts": true, "scripts": true,
"styles": { "styles": {
"minify": true, "minify": true,
"inlineCritical": true "inlineCritical": true,
"removeSpecialComments": true
}, },
"fonts": { "fonts": {
"inline": true "inline": true
} }
}, },
"outputHashing": "all", "outputHashing": "all",
"crossOrigin": "anonymous",
"subresourceIntegrity": true,
"sourceMap": false, "sourceMap": false,
"namedChunks": false, "namedChunks": false,
"extractLicenses": true, "extractLicenses": true,
@@ -64,13 +85,23 @@
"type": "anyComponentStyle", "type": "anyComponentStyle",
"maximumWarning": "4kB", "maximumWarning": "4kB",
"maximumError": "8kB" "maximumError": "8kB"
},
{
"type": "anyScript",
"maximumWarning": "350kB",
"maximumError": "500kB"
} }
] ]
}, },
"development": { "development": {
"optimization": false, "optimization": false,
"extractLicenses": false, "extractLicenses": false,
"sourceMap": true, "sourceMap": {
"scripts": true,
"styles": true,
"vendor": false,
"sourcesContent": true
},
"namedChunks": true "namedChunks": true
} }
}, },
+2 -1
View File
@@ -26,7 +26,8 @@
"------ BUILD": "", "------ BUILD": "",
"generate:static-files": "node scripts/generate-static-files.cjs", "generate:static-files": "node scripts/generate-static-files.cjs",
"generate:optimized-assets": "node scripts/generate-optimized-assets.cjs", "generate:optimized-assets": "node scripts/generate-optimized-assets.cjs",
"generate:assets": "npm run generate:static-files && npm run generate:optimized-assets", "generate:openpgp-assets": "node scripts/generate-openpgp-assets.cjs",
"generate:assets": "npm run generate:static-files && npm run generate:optimized-assets && npm run generate:openpgp-assets",
"build": "npm run generate:assets && ng build --configuration production && node scripts/copy-static-root-files.cjs", "build": "npm run generate:assets && ng build --configuration production && node scripts/copy-static-root-files.cjs",
"------ STARTUP": "", "------ STARTUP": "",
"test": "npm run generate:assets && ng test", "test": "npm run generate:assets && ng test",
+180
View File
@@ -0,0 +1,180 @@
const crypto = require('node:crypto');
const fs = require('node:fs');
const path = require('node:path');
const workspaceRoot = process.cwd();
const sourceKeyPath = path.join(workspaceRoot, 'src', 'assets', 'unoptimized', 'public.asc');
const publicKeyOutputPath = path.join(workspaceRoot, 'public', 'keys', 'public.asc');
const generatedModulePath = path.join(
workspaceRoot,
'src',
'app',
'generated',
'openpgp-key.generated.ts',
);
function ensureDirectory(directoryPath) {
fs.mkdirSync(directoryPath, { recursive: true });
}
function readAsciiArmoredKey(filePath) {
if (!fs.existsSync(filePath)) {
throw new Error(`Missing OpenPGP public key file at ${filePath}`);
}
return fs.readFileSync(filePath, 'utf8');
}
function decodeArmoredKey(armoredKey) {
const base64Lines = armoredKey
.split(/\r?\n/u)
.map((line) => line.trim())
.filter(
(line) =>
line.length > 0 &&
!line.startsWith('-----BEGIN ') &&
!line.startsWith('-----END ') &&
!line.includes(':') &&
!line.startsWith('='),
);
if (base64Lines.length === 0) {
throw new Error('OpenPGP public key armor did not contain any base64 payload.');
}
return Buffer.from(base64Lines.join(''), 'base64');
}
function parsePacketLength(buffer, offset, newFormat, lengthType) {
if (newFormat) {
const firstLengthOctet = buffer[offset];
if (firstLengthOctet < 192) {
return { headerLength: 1, packetLength: firstLengthOctet };
}
if (firstLengthOctet < 224) {
const secondLengthOctet = buffer[offset + 1];
const packetLength = ((firstLengthOctet - 192) << 8) + secondLengthOctet + 192;
return { headerLength: 2, packetLength };
}
if (firstLengthOctet === 255) {
return {
headerLength: 5,
packetLength: buffer.readUInt32BE(offset + 1),
};
}
throw new Error('OpenPGP partial body lengths are not supported by this generator.');
}
if (lengthType === 0) {
return { headerLength: 1, packetLength: buffer[offset] };
}
if (lengthType === 1) {
return { headerLength: 2, packetLength: buffer.readUInt16BE(offset) };
}
if (lengthType === 2) {
return { headerLength: 4, packetLength: buffer.readUInt32BE(offset) };
}
return { headerLength: 0, packetLength: buffer.length - offset };
}
function readPackets(buffer) {
const packets = [];
let offset = 0;
while (offset < buffer.length) {
const headerOctet = buffer[offset];
if ((headerOctet & 0x80) === 0) {
throw new Error(`Invalid OpenPGP packet header at byte offset ${offset}.`);
}
offset += 1;
const newFormat = (headerOctet & 0x40) !== 0;
const tag = newFormat ? headerOctet & 0x3f : (headerOctet >> 2) & 0x0f;
const lengthType = headerOctet & 0x03;
const { headerLength, packetLength } = parsePacketLength(buffer, offset, newFormat, lengthType);
offset += headerLength;
const body = buffer.subarray(offset, offset + packetLength);
packets.push({ tag, body });
offset += packetLength;
}
return packets;
}
function calculateFingerprintFromPacket(publicKeyPacketBody) {
const version = publicKeyPacketBody[0];
if (version === 4) {
const lengthBytes = Buffer.alloc(2);
lengthBytes.writeUInt16BE(publicKeyPacketBody.length, 0);
return crypto
.createHash('sha1')
.update(Buffer.concat([Buffer.from([0x99]), lengthBytes, publicKeyPacketBody]))
.digest('hex')
.toUpperCase();
}
if (version === 5 || version === 6) {
const lengthBytes = Buffer.alloc(4);
lengthBytes.writeUInt32BE(publicKeyPacketBody.length, 0);
return crypto
.createHash('sha256')
.update(Buffer.concat([Buffer.from([0x9a]), lengthBytes, publicKeyPacketBody]))
.digest('hex')
.toUpperCase();
}
throw new Error(`Unsupported OpenPGP public key version ${version}.`);
}
function formatFingerprint(fingerprint) {
return fingerprint.match(/.{1,4}/gu)?.join(' ') ?? fingerprint;
}
function buildGeneratedModule(assetPath, fingerprint) {
return [
'export const openPgpKey = {',
` assetPath: '${assetPath}',`,
` fingerprint: '${fingerprint}',`,
` formattedFingerprint: '${formatFingerprint(fingerprint)}',`,
'} as const;',
'',
].join('\n');
}
function run() {
const armoredKey = readAsciiArmoredKey(sourceKeyPath);
const binaryKey = decodeArmoredKey(armoredKey);
const packets = readPackets(binaryKey);
const publicKeyPacket = packets.find((packet) => packet.tag === 6);
if (!publicKeyPacket) {
throw new Error('Could not find a public-key packet in the provided OpenPGP key.');
}
const fingerprint = calculateFingerprintFromPacket(publicKeyPacket.body);
ensureDirectory(path.dirname(publicKeyOutputPath));
ensureDirectory(path.dirname(generatedModulePath));
fs.copyFileSync(sourceKeyPath, publicKeyOutputPath);
fs.writeFileSync(
generatedModulePath,
buildGeneratedModule('/keys/public.asc', fingerprint),
'utf8',
);
console.log(`Copied ${path.relative(workspaceRoot, publicKeyOutputPath)}`);
console.log(`Generated ${path.relative(workspaceRoot, generatedModulePath)}`);
console.log(`OpenPGP fingerprint: ${formatFingerprint(fingerprint)}`);
}
run();
+10 -51
View File
@@ -1,5 +1,5 @@
import { createReadStream } from 'node:fs'; import { createReadStream } from 'node:fs';
import { access, readdir, stat } from 'node:fs/promises'; import { access, stat } from 'node:fs/promises';
import { createServer } from 'node:http'; import { createServer } from 'node:http';
import path from 'node:path'; import path from 'node:path';
import { fileURLToPath } from 'node:url'; import { fileURLToPath } from 'node:url';
@@ -9,15 +9,13 @@ const __dirname = path.dirname(__filename);
const appRoot = path.resolve(__dirname, '..'); const appRoot = path.resolve(__dirname, '..');
const distRoot = path.join(appRoot, 'dist'); const distRoot = path.join(appRoot, 'dist');
const port = Number.parseInt(process.env.PORT ?? '3000', 10); const browserRoot = path.join(distRoot, 'browser');
const port = 3000;
const mimeTypes = new Map([ const mimeTypes = new Map([
['.css', 'text/css; charset=utf-8'], ['.css', 'text/css; charset=utf-8'],
['.gif', 'image/gif'],
['.html', 'text/html; charset=utf-8'], ['.html', 'text/html; charset=utf-8'],
['.ico', 'image/x-icon'], ['.ico', 'image/x-icon'],
['.jpg', 'image/jpeg'],
['.jpeg', 'image/jpeg'],
['.js', 'text/javascript; charset=utf-8'], ['.js', 'text/javascript; charset=utf-8'],
['.json', 'application/json; charset=utf-8'], ['.json', 'application/json; charset=utf-8'],
['.map', 'application/json; charset=utf-8'], ['.map', 'application/json; charset=utf-8'],
@@ -25,8 +23,6 @@ const mimeTypes = new Map([
['.svg', 'image/svg+xml'], ['.svg', 'image/svg+xml'],
['.txt', 'text/plain; charset=utf-8'], ['.txt', 'text/plain; charset=utf-8'],
['.webp', 'image/webp'], ['.webp', 'image/webp'],
['.woff', 'font/woff'],
['.woff2', 'font/woff2'],
['.xml', 'application/xml; charset=utf-8'], ['.xml', 'application/xml; charset=utf-8'],
]); ]);
@@ -48,23 +44,9 @@ function getCacheControl(filePath) {
} }
if ( if (
[ ['.css', '.ico', '.js', '.json', '.map', '.png', '.svg', '.txt', '.webp', '.xml'].includes(
'.css', extension,
'.gif', )
'.ico',
'.jpg',
'.jpeg',
'.js',
'.json',
'.map',
'.png',
'.svg',
'.txt',
'.webp',
'.woff',
'.woff2',
'.xml',
].includes(extension)
) { ) {
return normalizedPath.includes('/browser/') return normalizedPath.includes('/browser/')
? 'public, max-age=604800, stale-while-revalidate=86400' ? 'public, max-age=604800, stale-while-revalidate=86400'
@@ -83,36 +65,13 @@ async function pathExists(targetPath) {
} }
} }
async function resolveBrowserRoot() {
const directBrowserRoot = path.join(distRoot, 'browser');
if (await pathExists(path.join(directBrowserRoot, 'index.html'))) {
return directBrowserRoot;
}
const distEntries = await readdir(distRoot, { withFileTypes: true });
for (const entry of distEntries) {
if (!entry.isDirectory()) {
continue;
}
const nestedBrowserRoot = path.join(distRoot, entry.name, 'browser');
if (await pathExists(path.join(nestedBrowserRoot, 'index.html'))) {
return nestedBrowserRoot;
}
}
throw new Error(`Could not locate a browser build under ${distRoot}`);
}
const browserRoot = await resolveBrowserRoot();
async function resolveFile(urlPath) { async function resolveFile(urlPath) {
const normalized = path.posix.normalize(decodeURIComponent(urlPath)); const normalized = path.posix.normalize(decodeURIComponent(urlPath));
const relativePath = normalized.replace(/^(\.\.(\/|\\|$))+/, '').replace(/^\/+/, ''); const relativePath = normalized.replace(/^(\.\.(\/|\\|$))+/, '').replace(/^\/+/, '');
const distCandidate = path.join(distRoot, relativePath); const rootCandidate = path.join(distRoot, relativePath);
if ((await pathExists(distCandidate)) && (await stat(distCandidate)).isFile()) { if ((await pathExists(rootCandidate)) && (await stat(rootCandidate)).isFile()) {
return distCandidate; return rootCandidate;
} }
const browserCandidate = path.join(browserRoot, relativePath); const browserCandidate = path.join(browserRoot, relativePath);
@@ -151,5 +110,5 @@ const server = createServer(async (request, response) => {
}); });
server.listen(port, '0.0.0.0', () => { server.listen(port, '0.0.0.0', () => {
console.log(`Serving static app from ${browserRoot} on port ${port}`); console.log(`Serving static app on port ${port}`);
}); });
@@ -0,0 +1,5 @@
export const openPgpKey = {
assetPath: '/keys/public.asc',
fingerprint: '98FA30F85F2030A70F45AAEB3CDEA2DE5424B8E7',
formattedFingerprint: '98FA 30F8 5F20 30A7 0F45 AAEB 3CDE A2DE 5424 B8E7',
} as const;
+16
View File
@@ -75,6 +75,22 @@
</div> </div>
</section> </section>
<section class="panel openpgp-section">
<div class="openpgp-copy">
<p class="eyebrow">{{ content().home.openPgpTitle }}</p>
<p class="openpgp-description">{{ content().home.openPgpDescription }}</p>
</div>
<div class="openpgp-actions">
<a class="action-link openpgp-download-link" [href]="openPgpKey.assetPath" download="julian-lechner-public.asc">
{{ content().home.openPgpDownload }}
</a>
<p class="openpgp-fingerprint">
<span>{{ content().home.openPgpFingerprintLabel }}</span>
<strong>{{ openPgpKey.formattedFingerprint }}</strong>
</p>
</div>
</section>
<section id="about" class="story-section panel about-scroll-anim-enabled"> <section id="about" class="story-section panel about-scroll-anim-enabled">
<div class="section-heading"> <div class="section-heading">
<p class="eyebrow">{{ content().home.aboutEyebrow }}</p> <p class="eyebrow">{{ content().home.aboutEyebrow }}</p>
+2
View File
@@ -12,6 +12,7 @@ import { interval } from 'rxjs';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { global } from '../../global'; import { global } from '../../global';
import { openPgpKey } from '../generated/openpgp-key.generated';
import type { import type {
LanguageBioTextEntry, LanguageBioTextEntry,
LanguagePortraitHighlight, LanguagePortraitHighlight,
@@ -71,6 +72,7 @@ export class HomeComponent implements OnInit, AfterViewInit, OnDestroy {
protected readonly global = global; protected readonly global = global;
protected readonly age = this.calculateAge(global.birthdate); protected readonly age = this.calculateAge(global.birthdate);
protected readonly contactMailHref = `mailto:${global.contactMail}`; protected readonly contactMailHref = `mailto:${global.contactMail}`;
protected readonly openPgpKey = openPgpKey;
protected readonly arrowRightIcon = arrowRightIcon; protected readonly arrowRightIcon = arrowRightIcon;
protected readonly arrowDownIcon = arrowDownIcon; protected readonly arrowDownIcon = arrowDownIcon;
protected readonly envelopeIcon = envelopeIcon; protected readonly envelopeIcon = envelopeIcon;
+91
View File
@@ -0,0 +1,91 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGoC8R8BEACq5XrqV728z2hYvEZCep8T3729VoFia70l7qoz1o6aDCovlIRG
PGMpcRHin0rqI2pAVHha8bMJnm34JdlPY4Dk/KI31hw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A9Zc8tGndNBJEucNDi/Rn17A2uP1qOlFaVln/NWLYwn
Gsjhzbgq9RN22BxGbSmYboLOcCLJ3eAooI6qh02U920yEDEd4lPPodDSw5wj3Sxl
hbuSi9A8NgoBf0QYnVnCOi2Yw81ZZjkwmkIa15NEZNFRDSwjvfbiDgDHpJ7jDskz
=kK3g
-----END PGP PUBLIC KEY BLOCK-----
+4
View File
@@ -18,6 +18,10 @@ export const deLanguage: LanguagePack = {
heroIntro: heroIntro:
'Ich entwickle zuverlässige Systeme, übersichtliche Benutzeroberflächen und praktische digitale Lösungen, die sich in realen Kundensystemen bewähren.', 'Ich entwickle zuverlässige Systeme, übersichtliche Benutzeroberflächen und praktische digitale Lösungen, die sich in realen Kundensystemen bewähren.',
contactTitle: 'Kontaktiere mich', contactTitle: 'Kontaktiere mich',
openPgpTitle: 'OpenPGP',
openPgpDescription: 'Verwende meinen Public Key für verschlüsselte Kommunikation.',
openPgpDownload: 'Public Key herunterladen',
openPgpFingerprintLabel: 'Fingerprint',
viewProjects: 'Projekte', viewProjects: 'Projekte',
aboutMe: 'Über mich', aboutMe: 'Über mich',
nextHighlightAriaLabel: 'Nächstes Bild anzeigen', nextHighlightAriaLabel: 'Nächstes Bild anzeigen',
+4
View File
@@ -18,6 +18,10 @@ export const enLanguage: LanguagePack = {
heroIntro: heroIntro:
'I build reliable systems, clean interfaces, and practical digital solutions that actually hold up in production.', 'I build reliable systems, clean interfaces, and practical digital solutions that actually hold up in production.',
contactTitle: 'Contact me', contactTitle: 'Contact me',
openPgpTitle: 'OpenPGP',
openPgpDescription: 'Download my public key for encrypted communication.',
openPgpDownload: 'Download public key',
openPgpFingerprintLabel: 'Fingerprint',
viewProjects: 'View projects', viewProjects: 'View projects',
aboutMe: 'About me', aboutMe: 'About me',
nextHighlightAriaLabel: 'Show next image', nextHighlightAriaLabel: 'Show next image',
+4
View File
@@ -44,6 +44,10 @@ export interface LanguagePack {
portfolioEyebrow: string; portfolioEyebrow: string;
heroIntro: string; heroIntro: string;
contactTitle: string; contactTitle: string;
openPgpTitle: string;
openPgpDescription: string;
openPgpDownload: string;
openPgpFingerprintLabel: string;
viewProjects: string; viewProjects: string;
aboutMe: string; aboutMe: string;
nextHighlightAriaLabel: string; nextHighlightAriaLabel: string;
+68
View File
@@ -317,6 +317,61 @@ hr {
aspect-ratio: 1; aspect-ratio: 1;
} }
.openpgp-section {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: var(--space-4);
align-items: center;
margin-top: var(--space-4);
padding: 1.25rem 1.4rem;
}
.openpgp-copy,
.openpgp-actions {
min-width: 0;
}
.openpgp-copy {
display: grid;
gap: 0.45rem;
}
.openpgp-description,
.openpgp-fingerprint {
margin: 0;
}
.openpgp-description {
color: var(--text-muted);
line-height: 1.6;
}
.openpgp-actions {
display: grid;
gap: 0.7rem;
justify-items: end;
}
.openpgp-download-link {
width: 100%;
min-width: min(100%, 15rem);
}
.openpgp-fingerprint {
display: grid;
gap: 0.2rem;
text-align: right;
color: var(--text-muted);
font-size: 0.8rem;
}
.openpgp-fingerprint strong {
color: var(--text-primary);
line-height: 1.55;
letter-spacing: 0.06em;
word-break: break-word;
}
.action-link { .action-link {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@@ -1202,6 +1257,19 @@ hr {
text-align: center; text-align: center;
} }
.openpgp-section {
grid-template-columns: 1fr;
justify-items: center;
text-align: center;
}
.openpgp-actions,
.openpgp-fingerprint {
width: 100%;
justify-items: center;
text-align: center;
}
.hero-meta div { .hero-meta div {
width: min(100%, 24rem); width: min(100%, 24rem);
} }
+18 -11
View File
@@ -1,26 +1,33 @@
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
{ {
"compileOnSave": false, "compileOnSave": false,
"compilerOptions": { "compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": true, "strict": true,
"noImplicitOverride": true, "noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true, "noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true, "noImplicitReturns": true,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"skipLibCheck": true, "skipLibCheck": true,
"esModuleInterop": true, "isolatedModules": true,
"sourceMap": true, "experimentalDecorators": true,
"declaration": false, "importHelpers": true,
"moduleResolution": "bundler",
"target": "ES2022", "target": "ES2022",
"module": "ES2022", "module": "preserve"
"lib": ["ES2022", "DOM"],
"types": []
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true "strictTemplates": true
}, },
"exclude": ["node_modules"] "files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.spec.json"
}
]
} }