kolaravel's avatar

Is compressing and then encrypting data a good & stable solution for reducing the size of data in laravel?

Hi there

I'm developing a e-commerce website and want to store the payment data of my customers securely.

But after using encrypt(), the size of data become very large.

Then I came up with an idea that gzcompress data first then encrypt.

After testing, the size of encrypted data is reduced significantly.

But as far as I know, compressing data may cause some unexpected output in certain circumstances, depends on the input.

Is this method good and stable both for security and accessibility? Any reply is really appreciated.

0 likes
2 replies
artcore's avatar

If you mean CC info, you shouldn't at all store it ;) And that includes callback logs from paypal IPN and the likes

Snapey's avatar

Don't store it - unless you fancy being PCI compliant

Please or to participate in this conversation.