如何加密ini文件中的值 [英] How to encrypt a value in ini file
问题描述
使用加密/解密密钥?
为什么目的?安全?
如果您尝试(例如)加密明文密码,则应该使用PKI的一些实现。记住,然后密钥管理成为你的问题。只是加密值不是一个灵丹妙药,因为ini文件很可能在本地主机的文件系统上,大概是你必须存储密钥对的地方。你简单地将问题抽象出来了一层。他们将无法直接阅读您的加密密码,但如果他们可以找到您存储密钥对的位置,则可以自己解密。
What is the best way to encrypt a value in INI file?
Using Encryption/Decryption key??
For what purpose? Security?
If you are trying to (e.g.) encrypt a plaintext password you should probably use some implementation of PKI. Remember though, that then key management becomes your problem. Just encrypting the value is not a panacea because the ini file is most likely on the local host's file system, presumably the same place you'll have to store your key pair. You've simply abstracted the problem down a layer. They won't be able to read your encrypted password directly, but if they can find the place you store your key pair they can decrypt it themselves.
这篇关于如何加密ini文件中的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!