UNPKG

gzjs-utils

Version:

smart js utils

47 lines (46 loc) 1.06 kB
export interface Base64 { /** * 判断是否为base64 内容 * @param str */ is(str: string): boolean; /** * base64 加密 * @param input 需要解密的内容 */ encode(input: any): string | null | undefined; /** * base64 解密 * @param input 待解密内容 */ decode(input: any): string | null | undefined; /** * 加密数据 * @param input */ encrypt(input: any): Int8Array; /** * 解密数据 * @param input */ decrypt(input: any): Int8Array; } /** * 判断是否为base64 内容 * @param str */ export declare function is(str: any): boolean; /** * base64 加密 * @param input 需要解密的内容 */ export declare function encode(input: any): string; /** * base64 解密 * @param input 待解密内容 */ export declare function decode(input: any): string; export declare function encrypt(input: any): Int8Array; export declare function decrypt(input: any): Int8Array; declare const _Base64_: Base64; export default _Base64_;