tidalf/plugin.audio.qobuz

View on GitHub
resources/lib/qobuz/util/hash.py

Summary

Maintainability
A
0 mins
Test Coverage
import hashlib


def hashit(s):
    '''Using our own wrapper against hash function
        @note: Md5 seem to be the fastest in hashlib
        We don't really need cryptographic algo but well dunnon what to use :)
    '''
    m = hashlib.sha256()
    m.update(s)
    return m.hexdigest()