Sunday, 16 April 2017

How to split encrypted file into multiple file in node js

for security reason i want to store customer data in the encrypted form in the file which i havve achived by below code

var encryptor = require('file-encryptor');

var key = 'My Super Secret Key';

// Encrypt file.
encryptor.encryptFile('input_file.txt', 'encrypted.dat', key, function(err) {
  // Encryption complete.
});

but another thing i want in this is i want to break this file i.e input_file.txt into multiple file like input_file1.txt,input_file2.txt...etc

can anyone help me if this can be achive in node js.

your help will be really appreciable



via Mukesh Rawat

No comments:

Post a Comment