Use a neutral sample string in the crypto round-trip test

The previous sample text coincided with a real PIN from the source
material. Replace it with a placeholder.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 14:08:11 -05:00
parent 6ffa75802d
commit 7a81637819

View File

@@ -3,7 +3,7 @@ import assert from 'node:assert/strict';
import { encrypt, decrypt, DecryptError } from '../src/crypto.js'; import { encrypt, decrypt, DecryptError } from '../src/crypto.js';
const FAST = 1000; // iterations; production default is 600000 const FAST = 1000; // iterations; production default is 600000
const text = JSON.stringify({ note: 'ünïcødé ✓ secret 7419', big: 'x'.repeat(200000) }); const text = JSON.stringify({ note: 'ünïcødé ✓ secret sample', big: 'x'.repeat(200000) });
test('round trip', async () => { test('round trip', async () => {
const blob = await encrypt(text, 'correct horse', FAST); const blob = await encrypt(text, 'correct horse', FAST);