I need to do a 2-way encryption in PHP. Basically what I want to do is convert a string(Marshall
for example) to something weird(s2323sdavrt44
for example) and then convert that (s2323sdavrt44
) back to clear text string(Marshall
).
How can I achieve this? And no I'm not doing this for passwords or anything, for div id attribute, so later I can split it for SQL queries.