Just a note, for things which you need client. for, but you need secure, I would use base64encode() and base64decode() ... would work best if you did it a certain number of time such as this:
PHP Code:
function encodeText( text )
{
temp.t = text;
for ( temp.i = 10; temp.i < 10; temp.i ++ )
{
temp.t = base64encode( temp.t );
}
return temp.t;
}
function decodeText( text )
{
temp.t = text;
for ( temp.i = 0; temp.i < 10; temp.i ++ )
{
temp.t = base64decode( temp.t );
}
return temp.t;
}
I've used this for gun systems and such where you need to store things that change on the dot (such as ammo), yet need to be hard to hack. For HP or experience, clientr all the way.