import hashlib


def sha_encode(t):
    """Encoder using SHA1.

    >>> sha_encode("Hola mundo")
    'c083106c930790151165b95bd11860724e3836cb'
    """
    s = hashlib.sha1(t)
    return s.hexdigest()