如何加密MongoDB中的字段 [英] How to encrypt field in MongoDB

查看:44
本文介绍了如何加密MongoDB中的字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要加密 mongo 文档中的一个字段.最好的方法是什么?我用弹簧.有spring注解吗?

I need to encrypt one field in a mongo document. What is the best way to do it? I use spring. There is spring annotation for it?

推荐答案

目前只能从 java 进行加密.这里你上个月问了同样的问题

the encryption can be done for now only from java. here you have the same question asked last month

这已经在 ruby​​ 中完成了,所以如果你想在你的项目中使用 jruby,请查看 这个

this has been done already in ruby, so if you want to use jruby for this in your project take a look at this

或者你可以等到 MongoDB 在他们的 API 中包含这个

or you can wait until the MongoDB includes this in their API

这篇关于如何加密MongoDB中的字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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