Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2015-08-03 07:54 GMT
Find Nodes?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...

    Results (27 votes), past polls