Wednesday, 15 September 2010

How to encrypt php variable in javascript? -



How to encrypt php variable in javascript? -

when creat php variable in javascript, utilize method:

var jarray = <?php echo json_encode($myarray); ?>;

it's if view source code, ther total array in script area.

my problem that, php array contains secret data, , want utilize info in javascritp.

how can hide sourc code, or can do?

i tride javascript obfuscation can't work <?php ?> tag.

thanks!

javascript php variables encryption

No comments:

Post a Comment