vb.net - Data Masking in asp.net -
i want display confidential data bank account number, mobile numbers in 123**********1232
format in asp.net controls. 022-23232-2322
022*********2322
, on update should save actual data entered.
how achieved in asp.net?
if want mask users can't update commented, it's simple:
dim number = "022-23232-2322" dim token = number.split("-"c) dim masked = string.format("{0}{1}{2}", token(0), new string("*"c, 9), token.last())
result dersired: 022*********2322
of course have store real number serverside or load database when need it. should never need unmask it. if authorized user wants update new value , don't need old. if need reload data-source.
Comments
Post a Comment