How to password protect a file with flutter - flutter

I'm generating an xls file and would like to protect it with a password before attaching it to an email. The excel package doesn't have this feature yet. Is there a walk around solution like packing the file into a password protected archive? Thanks!

Related

How to add password lock to a zip file or any file in flutter?

How to add password lock to a zip file or any file in flutter?
I am using ZipFileEncoder for creating a zip file, but this does not allow to add password lock to it. How can I lock this file with password protection?
Is there any other way instead of using native platform specific code?
https://github.com/jlcool/flutter_zip_archive didn't test - but it looks like you can set a passcode here.
Found from this answer: https://stackoverflow.com/a/69083469/5812524

Does suitecrm validate file upload like sugarcrm?

Ive tried uploading a simple php script that prints a message in the page in SUITECRM and surprisingly the file got uploaded without any validations.
here's my proof:
When i check the upload folder and found the file in .php format in this location http://localhost/upload/7ED577F6-C8F1-3C9E-E518-587D98FF8A7B_evil.php
Is this a bug or is this an issue that haven't been patch ? what i can do to resolve this ?
There is no validation currently when a user uploads a file.
SuiteCRM simply checks for file permissions, maximum file size and not much more.
If you want to see for yourself here is the code

How to open and edit an XLSM file online

friends,
I have a Macro enabled excel file. How and where I can upload my Xlsm file and do the updation. I mean, I want my HR people to do the updation on regular basis on this XlSM file from the branch office and myself want to see the updated XLSM file at my Head office. Is there any way for that? I think Google docs cannot be possible.
thanks in adavance.
you may use database as a place that will store data. Your remote HR fill in excel tables then upload it to database (Access or MySQL or whatever) then you can download it wherever you are - this method requires writing macro that use ADO component - there is planty of tutorials about it.
regards
m

Can we generate Password Protected csv file in iPhone?

I have application which exports data in csv file which is stored in Document's Directory.
Also I have enabled File Sharing in my app with iTunes so that whenever i will connect my iPhone with iTunes it will allow me to save csv file. But my data needs security, so i want generate Password for my CSV file, So that whenever we open file in computer, it will ask for Password. How to achieve generating Password protected file in iPhone??
Well, you would have to create a disk image (.dmg file) in order to have the file password protected once it was on your computer. I don't think this is possible in iOS. I think your only solution would be to use an encryption/decryption algorithm. Store encrypted data into the file, and use your algorithm to decrypt the file once it is on your desktop. Here is a solution for encrypting/decrypting NSData.
How about it doing it this way :
Use some generic encrypting algorithm
Either generate a key or ask from user (as per your needs ) while generating csv
Then when its copied to dekstop ask user to download a utility to decrypt..
Or create simple online decrptor in php .. should be simple enough..
Or use existing : http://www.tools4noobs.com/online_tools/decrypt/

Password protect .gz folder sent from iPhone

I need to protect a file with password when I send it as email attachment from iPhone. I have zipped the file using libz.dylib zlib.h class. Basically I followed the approach discussed in http://www.cocoadev.com/index.pl?NSDataCategory ie., to create NSDataCategory and calling zlib methods to compress the file. So I have the .gz format file as NSData and I want to protect it with a password. My question is how to protect a .gz file with a password. And I have also a basic question of how the password protection on a file work? Will it encrypt the total file with the given password or will it just act as a gate keeper to open the file?
You can't add password encryption to a .gz file, there is no support in libz. What you are thinking of is .zip tools that also add a simple layer of encryption where the password is used to decrypt the file. You might want to have a look at lzmaSDK to implement that sort of feature, I have read that it supports AES. But, be aware that adding encryption code to your iPhone app is more trouble that it is worth because then you will need to also register to export the encryption. It will significantly complicate your app release process.