MySQL-DB 中私钥和公钥的存储

发布于 2024-09-12 07:23:43 字数 242 浏览 1 评论 0原文

可能已经有人问过这个问题了,但我找不到任何有用的信息,而且我以前从未这样做过。

所以问题就在这里。

如果我要获得一组具有不同时间有效性和唯一 ID 的密钥对(DSA 公钥和私钥),那么使用 Java 将它们存储在 MySQL-DB 中的最佳方法是什么?

将它们存储在数据库中是个好主意吗?

先感谢您。

穆尔

诗篇。 另一个问题,我无法想象,这两个键是什么样的?只是字节数组?

Probably somebody asked that already, but I couldn't find any usefull information and I've never done it before.

So here is the problem.

If I'll get a set of key pairs (DSA public and private keys) with different time validity and unique ID, what is the best way to store them in MySQL-DB using Java?

Is it a good idea at all to store them in DB?

Thank you in advance.

Mur

Ps.
another problem, i cann't really imagine, how do the both keys look like? just byte arrays?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烂柯人 2024-09-19 07:23:43

最好的选择是在存储它们时使用 blob。

将密钥存储在数据库中是否是个好主意的决定取决于应用程序的具体情况。我可以想象专门用于存储此类信息的安全数据库可能适用于某些情况。

Your best bet is to use blobs when storing them.

The decision of whether or not it's a good idea to store the keys in the database depends on the specifics of your application. I can imagine a secure database dedicated to storing this type of information might work for some situations.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文