def get_cipher(key=None, keyfile=None):
    """
    Get cipher object, and then you can invoke:
        des = get_cipher()
        d = des.encrpy('Hello')
        print des.descrpy(d)
    """
    des_func = import_attr(settings.SECRETKEY.CIPHER_CLS)
    kwargs = settings.SECRETKEY.CIPHER_ARGS
    
    if not key:
        key = functions.get_cipher_key(keyfile)
    cipher = des_func(key, **kwargs)
    return cipher