Un-Serialising data from a file, without eval


i'm playing writing data file can persist between sessions. i'm using

f.write(data.tosource());

to save data, f file object, and

var data = eval(f.read());

to data file. seems insecure way of doing things. sure it's unlikely going use, aescript preference files backdoor, that's still security through obscurity.

 

is there way read serialised data file without using eval()? or have roll-my-own parser / serialiser safely?



More discussions in After Effects Scripting


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"