UNPKG

outers

Version:

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

35 lines (34 loc) 1.53 kB
export default class Encryption { #private; constructor(Key: string); /** * The function Decrypt takes a string of data and decrypts it using a specified key. * @param {string} Data - The "Data" parameter is a string that represents the data that needs to be * decrypted. * @returns The decryptedData is being returned. */ Decrypt(Data: string): Promise<string>; /** * The function takes in data, converts it to a string, encrypts it using a key, and returns the * encrypted data as a string. * @param {any} Data - The "Data" parameter is of type "any", which means it can accept any data type. * It is the data that you want to encrypt. * @returns a promise that resolves to a string. */ Encrypt(Data: any): Promise<string>; /** * The function DecryptSync takes a string of data and decrypts it using a specified key. * @param {string} Data - The "Data" parameter is a string that represents the data that needs to be * decrypted. * @returns The decrypted data is being returned. */ DecryptSync(Data: string): string; /** * The function takes in data, converts it to a string, encrypts it using a specified key, and returns * the encrypted data as a string. * @param {any} Data - The "Data" parameter is of type "any", which means it can accept any data type. * It is the data that you want to encrypt. * @returns the encrypted data as a string. */ EncryptSync(Data: any): string; }