在Java类中加密特定字段
我想在班级的特定字段上执行加密,例如,
public class employeeDetail{
private String employeeID;
private String employeeContactNo; // this field will be encrypted
private String employeeAddress; // this field will be encrypted
private String employeeName;
}
我想加密某些特定字段,而不是全部来自Java对象。
任何人都可以提出一种更好的方法来实现这一目标吗?
注意:这不是一个实体。
I want to perform encryption on particular fields in the class let's say,
public class employeeDetail{
private String employeeID;
private String employeeContactNo; // this field will be encrypted
private String employeeAddress; // this field will be encrypted
private String employeeName;
}
I want to encrypt some particular fields, not all from the Java Object.
Can anyone please suggest a better way to achieve this?
Note: This is not an entity.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论