1.0.2 • Published 2 years ago

yann-crypto v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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;
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago