import hashlib


def checksum(s):
    """
    Calculate the checksum of a string.
    Should eventually support files too.

    We use MD5 because S3 does.
    """
    return hashlib.md5(s).hexdigest()