I'm planning to store gift card codes on my website that people can buy at certain store and then be able to use these to buy stuff on my website, now i'm planning on doing the following process to make these codes harder to decrypt:
1st I'll first use str_rot13 to shift every letter by 13 places 2nd i'll use str_replace to turn every 2 into 1 and every 1 into 2. 3rd i'll encrypt it using mycript or whatever encryption method i want and lastly i will shift every letter of the encryption by 13 or whatever i want.
I'm not very advance when it comes to security in php so that's why i'm asking for your opinion if this might be a good way to store data or if there are any alternative way to look into.
I'm also aware that there is no foolproof plan or tactic on how to keep hackers from decrypting any information i store into my database, but i at least want to make as hard possible for them not to easily decode it.
Note: the method i use above is just an example on what i might do.