setSalt method
Implementation
String setSalt(String saltStr) {
if (saltStr == null) {
int hash = DateTime.now().millisecondsSinceEpoch;
for (int i = 0; i < keyStr.length; i++) {
hash = (((hash << 5) + hash) + keyStr.codeUnitAt(i));
}
saltStr = hash.toString();
}
this.saltStr = saltStr;
saltBytes = Coder.getBytesSimple(saltStr);
saltSize = saltStr.length;
return saltStr;
}