Checksummming in scripts
Posted: Mon Jun 08, 2015 2:00 pm
Currently Ship Storage Helper doesn't handle store & retrieving ships with shield cycler devices succesfully.
To solve this i am adding methods for storing & retrieving shieldcycler values in JSON format to Shield Cycler oxp.
These methods can be used by any oxp, and i want to verify they were created by SC and not changed after exporting them.
I was thinking of using MD5 checksumming for this, but javascript doesn't appear to have such functionality build in.
I found many implementations of MD5 for node.js, but sofar none for javascript itself.
Cabal Common Library does have a strGetCRC function, but i'm not sure if it's powerful enough to detect small changes.
How do other scripters deal with this ?
To solve this i am adding methods for storing & retrieving shieldcycler values in JSON format to Shield Cycler oxp.
These methods can be used by any oxp, and i want to verify they were created by SC and not changed after exporting them.
I was thinking of using MD5 checksumming for this, but javascript doesn't appear to have such functionality build in.
I found many implementations of MD5 for node.js, but sofar none for javascript itself.
Cabal Common Library does have a strGetCRC function, but i'm not sure if it's powerful enough to detect small changes.
How do other scripters deal with this ?