.xorstring - macmcmeans/localDataStorage GitHub Wiki

localDataStorage.xorstring( string, seed, keyName )

This is a helper method that provides a window into the internal logic used by data scrambling. This logic is employed with the safeset and safeget methods.

Both the string and keyName arguments must be a string value. The seed can be any value and any data type.

This performs the binary exclusive-or operation on string and when combined with shuffling makes data obfuscation more robust.