def on_start(self):
functors_list = [
_Functor_ArgQuoteUnix(),
_Functor_ArgQuoteWin(),
_Functor_ArgSplitUnix(),
_Functor_ArgSplitWin(),
_Functor_CaseConversion(),
_Functor_Keypirinha(),
_Functor_RandBytes(),
_Functor_RandPassword(),
_Functor_RandUUID(),
_Functor_Rot13(),
_Functor_UrlQuote(),
_Functor_UrlQuotePlus(),
_Functor_UrlSplit(),
_Functor_UrlUnquote(),
_Functor_ZLib("adler32"),
_Functor_ZLib("crc32")]
for algo in hashlib.algorithms_available:
# some algorithms are declared twice in the list, like 'MD4' and
# 'md4', in which case we favor uppercased one
if algo.upper() != algo and algo.upper() in hashlib.algorithms_available:
continue
functors_list.append(_Functor_Hashlib(algo))
self.functors = {}
for functor in functors_list:
if functor.name in self.functors:
self.warn("functor declared twice:", functor.name)
else:
self.functors[functor.name] = functor
评论列表
文章目录