ChattyServer/lib/eventshandler.js
/**
 * Creates a sha1 hash of a given string.
 * @param {string} stringToHash - The string to hash
 * @return {string} The hashed version of the string
 */
Creates a sha1 hash of a given string.
@param {string} stringToHash - The string to hash
@return {string} The hashed version of the string
Creates a sha1 hash of a given string . @param { string } stringToHash - The string to hash @return { string } The hashed version of the string
function createHash(stringToHash)
{
  var shaHash = crypto.createHash('sha1')
  shaHash.update(stringToHash)
  var hash = shaHash.digest('hex')
  return hash
}
function createHash ( stringToHash ) { var shaHash = crypto . createHash ( 'sha1' ) shaHash . update ( stringToHash ) var hash = shaHash . digest ( 'hex' ) return hash }
Creates a sha1 hash of a given string.
Creates a sha1 hash of a given string .