UNPKG

rashi-discord-bot-lib

Version:

🚀 Powerful Discord bot framework with built-in database, event handling, and utilities

23 lines • 574 B
export declare class Crypto { /** * Encrypt data with AES */ static encrypt(data: string, secret: string): string; /** * Decrypt data with AES */ static decrypt(encryptedData: string, secret: string): string; /** * Generate a hash of data */ static hash(data: string): string; /** * Generate a random secret key */ static generateSecret(length?: number): string; /** * Verify data integrity */ static verify(data: string, hash: string): boolean; } //# sourceMappingURL=Crypto.d.ts.map