Do reversible encryption exist?

Hi All,

For my game, i need to store on local db informations and i don’t want the player be able to read/understand it (these are hints, information for founding treasure in the game needing in-app purchases, etc…)

It’s why i need to encrypt strings and be able to decrypt theses strings.
(So i don’t want to test an hash code… like md5)
I could use base64 encode and decode, but i would prefer to have something a little more secure.
Do you have an idea ?
Any help would be appreciated

md5 is one way encryption.  What you need is SHA256 or similar.  Import the openSSL library to achieve what you want.

Thank you, i will try. Hope the encrypted string is around the same longer than the original string ? Do you know ?

Is OpenSSL restricted to Pro/Enterprise users?

Nope https://docs.coronalabs.com/plugin/openssl/

Thanks, and congrats for your game “designer city”!

md5 is one way encryption.  What you need is SHA256 or similar.  Import the openSSL library to achieve what you want.

Thank you, i will try. Hope the encrypted string is around the same longer than the original string ? Do you know ?

Is OpenSSL restricted to Pro/Enterprise users?

Nope https://docs.coronalabs.com/plugin/openssl/

Thanks, and congrats for your game “designer city”!