@uniiem/zip-pseudo-encryption
v0.2.0
Published
Zip pseudo-encryption detection and generation in TypeScript.
Downloads
9
Maintainers
Readme
@uniiem/zip-pseudo-encryption
Zip pseudo-encryption detection and generation in TypeScript.
Installation
npm install @uniiem/zip-pseudo-encryption
Usage
import {
detectZipPseudoEncryption,
generateZipPseudoEncryption
} from '@uniiem/zip-pseudo-encryption';
// receive a File object
const file = new File([...], 'file.zip', { type: 'application/zip' });
// detection
detectZipPseudoEncryption(file).then((result) => {
console.log(result); // "normal" | "encrypted" | "pseudo" | "broken" | "unknown"
});
// generation
generateZipPseudoEncryption(file).then(f => {
// f is a new File object with pseudo-encryption
});
Sponsor
Buy me a coffee~