mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
19 lines
555 B
TypeScript
19 lines
555 B
TypeScript
// Copyright 2026 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import * as Bytes from '../Bytes.std.js';
|
|
import { getRandomBytes } from '../Crypto.node.js';
|
|
|
|
export function testPlaintextHash(): string {
|
|
return Bytes.toHex(getRandomBytes(32));
|
|
}
|
|
export function testAttachmentKey(): string {
|
|
return Bytes.toBase64(getRandomBytes(64));
|
|
}
|
|
export function testAttachmentLocalKey(): string {
|
|
return Bytes.toBase64(getRandomBytes(32));
|
|
}
|
|
export function testAttachmentDigest(): string {
|
|
return Bytes.toBase64(getRandomBytes(32));
|
|
}
|