I need to store credit card details into database in encrypted form. And then for further use I want to decrypt that cipher with a password or secret key.
I am new with laravel. I have already converted password into hash with laravel, if I will use laravel password encryption then I wont be able to decrypt card details. Because I know that is one way algorithm.
I did search on stackoverflow and on google but didn't find any useful info.
Now, I want to know how I can save card details in mysql database with secure encryption which should be decryptable with secret key or password.