UNPKG

toolset.io

Version:

前端开发常用工具集。

25 lines (24 loc) 562 B
/** * Caesar Cipher * @zh 凯撒密码 * @param str * @param shift */ export declare function caesarCipher(str: string, shift: number): string; /** * xor 密码 * @param str * @param key * @description 生成的结果为乱码,通过乱码解密获得明文 */ export declare function xorCipher(str: string, key: string): string; /** * base64 编码 * @param str */ export declare function base64Encode(str: string): string; /** * base64 解码 * @param str */ export declare function base64Decode(str: string): string;