tiny-essentials
Version:
Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.
36 lines • 1.32 kB
text/typescript
export default defaultCrypto;
/**
* Default cryptographic configuration for encryption and decryption operations.
*/
export type DefaultCrypto = {
/**
* - Length (in bytes) of the Initialization Vector (IV). Usually 16 for AES.
*/
IV_LENGTH: number;
/**
* - The encryption algorithm used (e.g., 'aes-256-cbc').
*/
algorithm: string;
/**
* - The default encryption/decryption key (must match the required length for the chosen algorithm).
*/
key: string;
/**
* - Encoding used for converting strings to Buffers (e.g., 'hex', 'base64').
*/
stringType: BufferEncoding;
};
/**
* Default cryptographic configuration for encryption and decryption operations.
*
* @typedef {Object} DefaultCrypto
* @property {number} IV_LENGTH - Length (in bytes) of the Initialization Vector (IV). Usually 16 for AES.
* @property {string} algorithm - The encryption algorithm used (e.g., 'aes-256-cbc').
* @property {string} key - The default encryption/decryption key (must match the required length for the chosen algorithm).
* @property {BufferEncoding} stringType - Encoding used for converting strings to Buffers (e.g., 'hex', 'base64').
*/
/**
* @type {DefaultCrypto}
*/
declare const defaultCrypto: DefaultCrypto;
//# sourceMappingURL=default.d.mts.map