如何显示“已屏蔽" SSN值,但未屏蔽存储SSN值? [英] How can I display a "Masked" SSN value, but store the SSN value unmasked?

查看:155
本文介绍了如何显示“已屏蔽" SSN值,但未屏蔽存储SSN值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要显示一个带掩码的SSN(格式为XXXX-XX-2345),但要存储整个SSN,而不带掩码.我是否需要建立完整的业务类型,还是有一种方法可以更改显示的内容,而无需将实体标记为已更改 显示了吗?

I need to display a masked SSN (in a format like XXXX-XX-2345), but store the entire SSN with no mask. Do I need to build a full blown business type or is there a way to change what is being displayed without the entity being flagged as changed when it is displayed?

谢谢

推荐答案

HTML或Silverlight应用程序?为了在富客户端中显示,您可以使用计算属性. HTML自己将值呈现为自定义控件.

HTML or Silverlight app? For display in rich client you could use a computed property. HTML render the value as a custom control yourself.

关于安全性考虑因素,例如处理加密,您什么也没说.根据您的操作,SSN可能很容易以明文形式检测出来.

You do not say anything regarding security considerations such as handling encryption. Depending what you do the SSN may be easy to detect in clear text.

戴夫


这篇关于如何显示“已屏蔽" SSN值,但未屏蔽存储SSN值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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