import hashlib


def secure_filename(filename):
    """Create secure file name from SHA-256 hash of `filename`."""
    filename = filename.encode('utf-8')
    return hashlib.sha256(filename).hexdigest()[:20]