DNN のサイト設定で、ユーザーのクレジット カードをプロファイルに保存したいと考えています。このデータを暗号化する方法はありますか? ユーザー カスタム フィールドを取得するために使用するコードは次のとおりです。
UserInfo theUser = new UserInfo
ProfilePropertyDefinition ppd = theUser.Profile.GetProperty(propName);
if (ppd != null)
{
string v = ppd.PropertyValue;
if (String.IsNullOrEmpty(v))
{
return string.Empty;
}
return v;
}