Files
tautkan-kanban/server/dist/utils/crypto.d.ts
T
Power BI Dev 88c7c653c2 first init
2026-08-17 10:52:09 +07:00

13 lines
433 B
TypeScript

/**
* Generate a cryptographically secure random string for authorization keys.
*/
export declare function generateSecureKey(length?: number): string;
/**
* Hash a plain text key with SHA-256 for secure database storage.
*/
export declare function hashKey(key: string): string;
/**
* Constant-time hash verification to prevent timing attacks.
*/
export declare function verifyKeyHash(key: string, storedHash: string): boolean;