Email Sorter Beta

Ich habe soweit automatisiert the Emails sortieren aber ich muss noch schauen was es fur bugs es gibt wenn die app online  ist deswegen wurde ich mit diesen Commit die website veroffentlichen obwohjl es sein konnte  das es noch nicht fertig ist und verkaufs bereit
This commit is contained in:
2026-01-22 19:32:12 +01:00
parent 95349af50b
commit abf761db07
596 changed files with 56405 additions and 51231 deletions

View File

@@ -28,6 +28,12 @@ export class CryptoProvider {
computeHMACSignatureAsync(payload, secret) {
throw new Error('computeHMACSignatureAsync not implemented.');
}
/**
* Computes a SHA-256 hash of the data.
*/
computeSHA256Async(data) {
throw new Error('computeSHA256 not implemented.');
}
}
/**
* If the crypto provider only supports asynchronous operations,

View File

@@ -16,4 +16,11 @@ export class NodeCryptoProvider extends CryptoProvider {
const signature = await this.computeHMACSignature(payload, secret);
return signature;
}
/** @override */
async computeSHA256Async(data) {
return new Uint8Array(await crypto
.createHash('sha256')
.update(data)
.digest());
}
}

View File

@@ -34,6 +34,10 @@ export class SubtleCryptoProvider extends CryptoProvider {
}
return signatureHexCodes.join('');
}
/** @override */
async computeSHA256Async(data) {
return new Uint8Array(await this.subtleCrypto.digest('SHA-256', data));
}
}
// Cached mapping of byte to hex representation. We do this once to avoid re-
// computing every time we need to convert the result of a signature to hex.