first init

This commit is contained in:
Power BI Dev
2026-08-17 10:52:09 +07:00
commit 88c7c653c2
9281 changed files with 2156575 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
/**
* 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;