def get_secret_key(request, profile=None):
    if not profile:
        if request.user.username:
            profile = request.user.profile
    if profile:
        params = request.GET.copy()
        if 'secret' in params:
            del params['secret']
        hash = hashlib.sha224()
        hash.update(unicode(params))
        hash.update(unicode(profile.id))
        hash.update(unicode(profile.user.date_joined))
        key = unicode(profile.id) + '.' + hash.hexdigest()
        return key
    return ''
Generates secret key for a request in RSS format
dataset/ETHPy150Open treeio/treeio/treeio/core/rss.py/get_secret_key