Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Golf: Replacing part of a string with "*"

by explorer (Chaplain)
on Aug 18, 2006 at 15:36 UTC ( #568195=note: print w/replies, xml ) Need Help??

in reply to Golf: Replacing part of a string with "*"

More fuzzy (the result)

substr($string,rand length $string,1,"*") foreach 1..12; # 5****23** +*34**7*
Update: No guarantee included :-)

Replies are listed 'Best First'.
Re^2: Golf: Replacing part of a string with "*"
by ikegami (Pope) on Aug 18, 2006 at 15:40 UTC
    That's bad for readability (harder for the user to figure out which one of his cards was used), and it's bad security (since the number could be obtained over time or if multiple retailers did this). And of course, there's are times when two, one and even no digits are hidden.

      I know one bank that use it... but I agree with you...

Re^2: Golf: Replacing part of a string with "*"
by suaveant (Parson) on Aug 18, 2006 at 17:29 UTC
    Actually a couple issues with this, 1) not guaranteed to use any asterisks (usually will), 2) since they are different each time with enough receipts you could get the whole number.

                    - Ant
                    - Some of my best work - (1 2 3)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://568195]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2018-03-18 10:16 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (229 votes). Check out past polls.