⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.py

📁 python的加密库
💻 PY
字号:
## Test script for the Python Cryptography Toolkit.#__revision__ = "$Id: test.py,v 1.7 2002/07/11 14:31:19 akuchling Exp $"import os, sys# Add the build directory to the front of sys.pathfrom distutils.util import get_platforms = "build/lib.%s-%.3s" % (get_platform(), sys.version)s = os.path.join(os.getcwd(), s)sys.path.insert(0, s)s = os.path.join(os.getcwd(), 'test')sys.path.insert(0, s)from Crypto.Util import testargs = sys.argv[1:]quiet = "--quiet" in argsif quiet: args.remove('--quiet')if not quiet:    print '\nStream Ciphers:'    print '==============='if args: test.TestStreamModules(args, verbose= not quiet)else: test.TestStreamModules(verbose= not quiet)if not quiet:    print '\nBlock Ciphers:'    print '=============='if args: test.TestBlockModules(args, verbose= not quiet)else: test.TestBlockModules(verbose= not quiet)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -