yann-crypto
v1.0.2
Published
crypto
Downloads
1
Readme
yann-crypto
Description
crypto
Use
/** decrypted
* @param {string} word Content that needs to be decrypted
* @param {string?} key Key for encryption
* @param {string?} offset shifting
* @returns {string}
*/
export declare function decrypt(
word: string,
key?: string,
offset?: string
): string;
/** encryption
* @param {string} word Content that requires encryption
* @param {string?} key Key for encryption
* @param {string?} offset shifting
* @returns {string}
*/
export declare function encrypt(
word: string,
key?: string,
offset?: string
): string;
interface Option {
key: string; // Default Key
iv: string; // Default Shifting
ivLive: boolean; // Default Open shifting (Default: false)
}
// Change Default Option
export declare function setOption(o: Partial<Option>): void;