Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Storing credit card numbers temporarily (OT)

by mattr (Curate)
on Aug 14, 2005 at 15:08 UTC ( #483701=note: print w/replies, xml ) Need Help??

in reply to Storing credit card numbers temporarily (OT)

This may be seen as a bit much but in a post way back when I noted that you can find secrets by dumping the memory device to a file and grepping it. I was able to eliminate this danger by writing junk characters to the secret string to fill its entire previous length before destroying it. When I have been in similar situations to yours I would overwrite the string after using it, and if it had to remain across states, then would encrypt it and store it as a hidden form field in the html returned to the user. Otherwise you can store a hash or just the last 4 digits if you wish. I believe the crypt function is one-way too; if you are using mysql you can store it in a password field. But you should do periodic cleaning, I would always clean old sessions after finishing a user's transaction.
  • Comment on Re: Storing credit card numbers temporarily (OT)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2018-02-23 18:48 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (307 votes). Check out past polls.