如何锁定/密码保护 XML 文件? [英] How to lock/password-protect an XML file?

查看:41
本文介绍了如何锁定/密码保护 XML 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 XML 文件中读写数据.我不希望其他人阅读该文件.所以我想为我的文件创建密码或锁定文件.

I read and write data in an XML file. I do not want other people to read that file. So i want to create password for my file or lock the file.

我该怎么做?

推荐答案

不使用加密软件就无法对 XML 文件进行密码保护.XML 文件只是文本,但像 PGP (Google away) 这样的程序应该可以很好地进行强加密.也有许多基于 Java 的加密库可用,大部分是开源的,只需 google 一下

You can't password protect XML files without using encryption software. XML files are just text, but programs like PGP (Google away) should work well for strong encryption. Lots of Java-based encryption libraries available too, mostly open-source, just google them

这篇关于如何锁定/密码保护 XML 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆