@labforadvanced.study/lotto-mcp-server
Version:
MCP Server for automated lotto purchase and checking with npx support
37 lines • 1.3 kB
TypeScript
export interface EncryptedCredentials {
encryptedId: string;
encryptedPassword: string;
}
export interface DecryptedCredentials {
id: string;
password: string;
}
/**
* 간단한 Base64 인코딩 (ID,PASSWORD 형태)
*/
export declare function encodeCredentialsSimple(id: string, password: string): string;
/**
* 간단한 Base64 디코딩 (ID,PASSWORD 형태)
*/
export declare function decodeCredentialsSimple(encoded: string): DecryptedCredentials;
/**
* 문자열을 간단히 암호화합니다 (호환성을 위해 간단한 방식 사용)
*/
export declare function encrypt(text: string, secretKey?: string): string;
/**
* 암호화된 문자열을 복호화합니다
*/
export declare function decrypt(encryptedText: string, secretKey?: string): string;
/**
* ID와 패스워드를 암호화합니다
*/
export declare function encryptCredentials(id: string, password: string, secretKey?: string): EncryptedCredentials;
/**
* 암호화된 ID와 패스워드를 복호화합니다
*/
export declare function decryptCredentials(encryptedId: string, encryptedPassword: string, secretKey?: string): DecryptedCredentials;
/**
* 랜덤 시크릿 키를 생성합니다
*/
export declare function generateSecretKey(): string;
//# sourceMappingURL=crypto-utils.d.ts.map