簡體   English   中英

安全存儲數據的最佳方法?

[英]Best way to store data securely?

我正在尋找存儲一些數據的方法。 我希望程序的用戶能夠選擇一種存儲數據的方式。 他們可以選擇數據庫(PostgreSQL,MySQL),而我想給新手用戶選擇更簡單的方法的機會,這樣他們就不必安裝數據庫系統。 當他們第一次啟動我的程序時,他們正在傳遞用戶數據(登錄名/密碼),並且我的程序生成的一些數據存儲在用戶的HDD上。 是任何庫(對於Java)還是db之類的東西,但是當我允許這樣做時會自動配置? 我的意思是,我想在db中創建一些表並可以輕松訪問它們。 但是它們應該是安全的(只能使用首次傳遞的登錄名/密碼進行訪問)。 希望你能理解我。 很難解釋我想要什么:)

您可以使用嵌入式數據庫,例如Apache Derby 另請參閱使用加密一文。

如果我了解正確,那么您需要可以存儲加密數據的嵌入式SQL DB引擎? 看看h2數據庫,它是輕量級的,並且具有

Security Features

Includes a solution for the SQL injection problem
User password authentication uses SHA-256 and salt
For server mode connections, user passwords are never transmitted in plain text over the network (even when using insecure connections; this only applies to the TCP server and not to the H2 Console however; it also doesn't apply if you set the password in the database URL)
All database files (including script files that can be used to backup data) can be encrypted using AES-128 and XTEA encryption algorithms
The remote JDBC driver supports TCP/IP connections over SSL/TLS
The built-in web server supports connections over SSL/TLS
Passwords can be sent to the database using char arrays instead of Strings 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM