• Hash an object and return the digested hashed value as hex

    Parameters

    • obj: string | object

      Object to calculate the unique hashed value for

    • algorithm: string = 'sha1'

      hashing algorithm to use; defaults to sha1

    Returns string