Cryptography-SHA-1 algorithm

Experiment 7 SHA-1 1. Purpose of the experiment Familiar with the running process of the SHA-1 algorithm, and be able to use C++ language to write programs to implement the SHA-1 algorithm. Add understanding of summary functions. 2. Experimental requirements (1) Understand the definition and working process of SHA-1 round function. (2) Use VC++ language […]

TLS/SSL (6) Asymmetric cryptography application PKI certificate system

1 PKI certificate system Concepts: ‘PKI’, ‘CA’, ‘Digital Certificate’, ‘Certificate Chain’, ‘Digital Signature’ The public key explained before is different from the certificate obtained by the https site. The public key is only a part of the information of the digital certificate. Note: The following content is only as a “personal” note Huawei Cloud Certificate […]

OpenSSL issues encountered by pip cryptography

pip install -r requirements.txt encountered a bug Collecting cryptography==2.7 Downloading cryptography-2.7.tar.gz (495 kB) ————————————- 495.9/495.9 kB 15.7 MB/s eta 0:00: 00 Installing build dependencies: started Installing build dependencies: finished with status ‘done’ Getting requirements to build wheel: started Getting requirements to build wheel: finished with status ‘done’ Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished […]

python module – cryptography

1. cryptography module The cryptography module is the core module in Python for cryptographic operations. It provides various cryptographic algorithms, key generation, encryption, decryption, signing and verification functions. Official website address: cryptography · PyPI Version requirements: Python 3.7+ Installation: pip install cryptography Documentation: Welcome to pyca/cryptography – Cryptography 42.0.0.dev1 documentation The following are the core […]

[Mac] Installation process of cryptography library Miracl

【Mac】Cryptography library Miracl installation process Hardware and software environment installation steps BLS algorithm based on bilinear pairing Conclusion Hardware and software environment System environment coalbrother@Macbook-Air ~ % uname -a Darwin MacBook-Air.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 arm64 gcc environment coalbrother@MacBook-Air ~ % gcc -v Apple clang version 14.0.3 […]

Python3 offline installation of cryptography in Windows environment fails

When releasing the Flask Web project, an error was reported that Cryptography was missing, so I tried to reinstall the library, but there is no network on this machine, and only manual offline installation is supported. I tried two methods of pip and setup.py to install, but both reported errors. . Finally, copy the installation […]

miniconda3: AttributeError: module ‘cryptography.hazmat.backends’ has no attribute ‘openssl’

miniconda3: AttributeError: module ‘cryptography.hazmat.backends’ has no attribute ‘openssl’ AttributeError: module ‘cryptography.hazmat.backends’ has no attribute ‘openssl’ Solution AttributeError: module cryptography.hazmat.backends’ has no attribute openssl’ The problem occurred after miniconda3 in the AUR was updated to 23.5.2-1 (before and after the update, I commented out the conda in .bashrc according to the instructions). At that time, after […]

Python: cryptography private key public key generation, serialization, encryption and decryption, signature verification

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Translation: cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Table of Contents document Install example 1. Generate private key and obtain public key 2. Private key and public key serialization 3. Deserialization of private key […]