我可以使用python默认库设置加密电子邮件并解密吗? [英] Can I encrypt email and decrypt it back using python default library set?

查看:315
本文介绍了我可以使用python默认库设置加密电子邮件并解密吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当然,在stackoverflow中也提到了类似的问题,但是我不想使用像Crypto这样的任何第三方库。所以我需要从用户电子邮件中生成一个密文,并将其解密为明文。如何在python中执行此操作?

Of course similar questions have been asked in stackoverflow but I don't want to use any third party library like Crypto or something. So I need to generate a ciphertext from a user email and decrypt it back to plaintext. How can I do this in python?

推荐答案

第三方系统是您最好的选择。

如果你真的不想/不想使用第三方,也许简单的一切就够了。

A third-party system is your best bet.
If you really can't/don't want to use a third-party, maybe something simple would suffice.

一个更简单的算法是微小加密算法(TEA)。 以下是可以开始使用的Python实现的示例。

One of the simpler algorithms is the Tiny Encryption Algorithm (TEA). Here's an example of a Python implementation that you could start with.

这篇关于我可以使用python默认库设置加密电子邮件并解密吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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