
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
client-encrypt-file-upload
Advanced tools
Accepts a file upload Blob, base64 encodes it, encrypts it and returns encrypted data via callback E.G {type: 'encrypted-string', data: 'iihkwqhury8473y4r3y3443yr3'}
A client side file encryptor for Node.js.
Add it to your node.js project via:
npm install client-encrypt-file-upload --save
As this is a client side script you'll need to compile this module and it's dependencies using browserify or something similar
browserify node_modules/client-encrypt-file-upload/dist/index.js -o bundle.js
To encrypt a file upload:
//Add change event to file upload field
document.addEventListener('DOMContentLoaded',function() {
document.querySelector('input[name="input_4"]').onchange=changeEventHandler;
},false);
//Handle the change event and call encryptFile
//Encrypt file blob with secret key bla-bla-bla-bla-bla and return encrypted response data
//via callback E.G {type: 'encrypted-string', data: 'iihkwqhury8473y4r3y3443yr3'}
function changeEventHandler(event) {
encryptFile(event.target.files[0], 'bla-bla-bla-bla-bla', function(response){
console.log(response.type);
console.log(response.data);
});
}
FAQs
Accepts a file upload Blob, base64 encodes it, encrypts it and returns encrypted data via callback E.G {type: 'encrypted-string', data: 'iihkwqhury8473y4r3y3443yr3'}
The npm package client-encrypt-file-upload receives a total of 10 weekly downloads. As such, client-encrypt-file-upload popularity was classified as not popular.
We found that client-encrypt-file-upload demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.