How Can I Make It Csv File Password Protected Using Javascript
Solution 1:
On the surface a CSV file is just a data exchange format, where fields are separated by commas and each record goes on a single line.
Comma Separated Values Standard
This specification itself wouldn’t deal with password protection.
But can you do something like zip the csv. Then that would require a password before uncompressing.
Password Protect a Zip File SO
In that link someone called exec to zip a file with password protection.
I do not know exactly the details of what you are intending to accomplish, but basically you can scramble a CSV all you want and make it unreadable without decryption, but since that isn't part of the standard, anyone getting that file wouldn't know what to do with it. If you control both the encryption and decryption, then you don't need zip.
You could just use an encryption library Javascript AES Encryption
Post a Comment for "How Can I Make It Csv File Password Protected Using Javascript"