db anonymization implementation

This commit is contained in:
azivner
2017-12-16 00:05:37 -05:00
parent fab69f411e
commit 5b08dfefd3
9 changed files with 74 additions and 7 deletions

View File

@@ -70,6 +70,9 @@ function isEmptyOrWhitespace(str) {
return str === null || str.match(/^ *$/) !== null;
}
function getDateTimeForFile() {
return new Date().toISOString().substr(0, 19).replace(/:/g, '');
}
module.exports = {
randomSecureToken,
@@ -85,5 +88,6 @@ module.exports = {
hmac,
isElectron,
hash,
isEmptyOrWhitespace
isEmptyOrWhitespace,
getDateTimeForFile
};