def register_auth(key=None, cert=None, store=None, digest=u'sha1', serializer=u'json'):
 s = SecureSerializer((key and PrivateKey(key)), (cert and Certificate(cert)), (store and FSCertStore(store)), digest=digest, serializer=serializer)
 registry.register(u'auth', s.serialize, s.deserialize, content_type=u'application/data', content_encoding=u'utf-8')

def register_auth ( key = None , cert = None , store = None , digest = u'sha1' , serializer = u'json' ) : s = SecureSerializer ( ( key and PrivateKey ( key ) ) , ( cert and Certificate ( cert ) ) , ( store and FSCertStore ( store ) ) , digest = digest , serializer = serializer ) registry . register ( u'auth' , s . serialize , s . deserialize , content_type = u'application/data' , content_encoding = u'utf-8' )
register security serializer .