文件操作 - cryptutil.cpython-311.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/openid/__pycache__/cryptutil.cpython-311.pyc
编辑文件内容
� |=�^� � �: � d Z g d�ZddlZddlZddlZddlmZmZ ddlZ G d� de � � Z e ej � � Z e ej � � Zd� Zd� Zd � Zd � Z dZ ddlmZmZ d � Zd� Zn# e$ r ddlZd� Zd� ZY nw xY wej Zej Zd� Zd� Zdd�Zd� ZdS )a, Module containing a cryptographic-quality source of randomness and other cryptographically useful functionality Python 2.4 needs no external support for this module, nor does Python 2.3 on a system with /dev/urandom. Other configurations will need a quality source of random bytes and access to a function that will convert binary strings to long integers. This module will work with the Python Cryptography Toolkit (pycrypto) if it is present. pycrypto can be found with a search engine, but is currently found at: http://www.amk.ca/python/code/crypto ) �base64ToLong�binaryToLong�hmacSha1� hmacSha256�longToBase64�longToBinary�randomString� randrange�sha1�sha256� N)�toBase64� fromBase64c � � e Zd Zd� ZdS )� HashContainerc �<