fsl-js-sdk
Version:
sdk for web
19 lines (17 loc) • 592 B
TypeScript
import rsaKey from 'jsrsasign';
export declare class EncryptBase {
static encryption(key: string, value: string): string;
static decrypt(key: string, value: string): string;
static generateRsaKey(): {
privateKey: string;
publicKey: string;
};
static sign(str: string, publicKey: string | rsaKey.RSAKey): string;
static decryptSign(privateKey: string, sign: string): string;
static md5Encode(val: string): string;
static getEncryptedChainKeys(
isNewUser: boolean,
pwd?: string,
code?: string,
): Promise<{ localToken: string; cloudFilePwd?: string }>;
}