AES在GCM模式下的Python [英] AES in GCM mode in Python

查看:899
本文介绍了AES在GCM模式下的Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道一个python库或围绕ac库的包装器,可以通过 GCM轻松提供认证AES模式



PyCrypto不支持它,PyOpenSSL不支持直接访问OpenSSL的对称密码部分

解决方案

PyCA加密库提供AES-GCM: https://cryptography.io/en/latest/hazmat/primitives/symmetric-encryption/#cryptography.hazmat.primitives.ciphers.modes.GCM


Does anyone know of a python library or wrapper around a c library that will easily provide Authenticated AES via GCM mode?

PyCrypto does not support it and it does not appear that PyOpenSSL supports direct access to the symmetric cipher portions of OpenSSL

解决方案

The PyCA cryptography library provides AES-GCM: https://cryptography.io/en/latest/hazmat/primitives/symmetric-encryption/#cryptography.hazmat.primitives.ciphers.modes.GCM

这篇关于AES在GCM模式下的Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆