如何使.csv文件密码受保护? [英] How I can make .csv file password protected?
本文介绍了如何使.csv文件密码受保护?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使.csv文件密码受保护?
这是我的基于MFC对话框的项目的输入文件.
我不希望除我之外任何人都可以修改.csv文件.
谢谢.
Hi,
How I can make .csv file password protected?
Which is input file for my MFC dialogbased project.
I don''t want anyone can modifi .csv file except me.
Thank you.
推荐答案
CSV文件只是文本文件,因此没有添加密码的机制.
您可以尝试以下方法之一:
1.使用校验和对文件进行加密,以确定它已被修改.
2.将文件存储在受限制的文件夹中
3.使用winzip或7-zip之类的文件以压缩格式存储文件,并在zip上输入密码.
4.将数据存储在受密码保护的Excel文件中
5.将数据存储在受密码保护的本地数据库中(例如Access,LocalDb,SQLite)
可能还有其他选择,但这就是我目前能想到的全部
A CSV file is just a text file, so there is no mechanism for adding a password.
You could try one of the following instead:
1. Encrypt the file using checksums to determine it has been modified.
2. Store the file in a restricted folder
3. Use something like winzip or 7-zip to store the file in compacted format with a password on the zip.
4. Store the data in an Excel file that is password protected
5. Store the data in a local database that is password protected (e.g. Access, LocalDb, SQLite)
There may be other options but that''s all I can think of at the moment
这篇关于如何使.csv文件密码受保护?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文