@contentstack/cli-utilities
Version:
Utilities for contentstack projects
15 lines (14 loc) • 363 B
TypeScript
type CryptoConfig = {
algorithm?: string;
encryptionKey?: string;
typeIdentifier?: string;
};
export default class NodeCrypto {
private readonly key;
private readonly algorithm;
private readonly typeIdentifier;
constructor(config?: CryptoConfig);
encrypt(plainData: any): string;
decrypt(encryptedData: any): any;
}
export {};