Adding md5 hashing for all usernames

This commit is contained in:
James Barnsley
2018-01-23 11:34:03 +13:00
parent 3a23a2b3ef
commit cdf8331e30
7 changed files with 65 additions and 47 deletions

View File

@ -802,4 +802,20 @@ export let getIndexedRecords = function(index, uris){
**/
export let titleCase = function(string){
return string.charAt(0).toUpperCase() + string.slice(1)
}
}
/**
* Hash a string
* Included from http://coursesweb.net/javascript/md5-hash-string_cs
*
* @param string
* @return string
**/
export let hash = function md5(string){
return string;
}