Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2016-10-28 06:39 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (375 votes). Check out past polls.