简体   繁体   中英

Credit card numbers in html5 localStorage

What if I stored encrypted credit card info in the browser's localstorage? When the user visits the site again, the credit card field is prepopulated by Javascript. The form itself points directly to a payment processor, so credit card info is never transmitted to my server.

Of course, my site and the payment processor's site are accessed via https.

Is this PCI compliant? Is this a bad way to do things?

I am not certain that falls under the pci-dss regulations. Storing customer data in potentially hackable files is the big concern.

不确定PCI合规性,但您也可以将信用卡信息存储在仅HTTPS的cookie中

Since the card # would essentially be stored on the client's machine, then (with my interpretation of pci-dss) you have no way to restrict or monitor access to that data even though its encrypted. Sounds to me to be non-compliant.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM