Masking numbers

Author Message
abbeyroad909

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 11/24/2008
  • Status: offline
Masking numbers Monday, November 24, 2008 9:07 AM (permalink)
0
We're trying to create a web page that pulls info from a database that includes credit card numbers.  We want to mask the middle eight digits for security purposes, but can't figure it out.  Any help would be appreciated.

Thanks!
Jena


 
#1
    ebgreen

    • Total Posts : 8227
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: offline
    RE: Masking numbers Monday, November 24, 2008 9:33 AM (permalink)
    0
    Well, lets say that you have a string of numbers:

    strCCNumber = "1234567890123456"
    strClean = Left(strCCNumber, 4) & "********" & Right(strCCNumber, 4)
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9