UNPKG

outers

Version:

outers - a all in one package for your day to day use

22 lines (21 loc) 1.07 kB
type str = string; /** * The `nodeDecrypt` function takes in an encrypted data string and a key, decrypts the data using * AES-CBC encryption, and returns the decrypted data as a UTF-8 string. * @param {str} Data - The `Data` parameter is a string that represents the encrypted data that you * want to decrypt. * @param [Key=YourKey] - The `Key` parameter is the encryption key used to decrypt the data. It is a * string value that represents the secret key used in the AES-CBC encryption algorithm. By default, * the value is set to 'YourKey', but you can provide your own key as an argument when calling the ` * @returns the decrypted data as a UTF-8 string. */ export declare function Decrypt(Data: str, Key: str): Promise<str>; /** * Decrypts the given data using the specified key. * @param {string} Data - The data to be decrypted. * @param {string} Key - The key used for decryption. * @returns {string} - The decrypted data. * @throws {Error} - If the key is missing. */ export declare function DecryptSync(Data: str, Key: str): str; export {};