如何在Python中加密和在C#中解密? [英] How to encrypt in Python and decrypt in a C#?
问题描述
我对加密技术很陌生,并且看到了许多不同的库,但是其中许多库是在多年前创建的,我只是想知道当今人们使用python进行加密的方式以及与之一起用于解密的某些方法. C#.net
我研究了pycrypto,但是从我读过的所有帖子中,似乎它已经有一段时间没有更新了(尽管它确实很受欢迎),并且人们一直在努力使它起作用使用.net,
有什么好的建议吗?我不认为存在具有.net&的库.可用的python版本吗?确实需要像AES这样的可靠加密.
对于以后的任何人,我都进行了一些测试,发现这对于我的目的非常有效,silverlight示例几乎可以直接移植到C#./p>
使用pycrypto& System.Security.Cryptography
http://japrogbits. blogspot.co.nz/2011/02/using-encrypted-data-between-python-and.html
I am new-ish to encryption, and have seen many different libraries, however many of them were created many years ago, I am just wondering what people use today to encrypt in python and something that will work with it for decrypting in C# .net
I have looked into pycrypto, but from all the posts I have read, it seems like it hasn't been updated in a while (though it does seem very popular), and people have had a real struggle at getting it working with .net,
Any good suggestions? I don't suppose a library exists for this that has a .net & python version available? It really needs to be a reliable encryption such as AES.
For anyone in the future, I did some tests and found that this worked perfectly for my purposes, the silverlight example can pretty much be directly ported to C#.
Uses pycrypto & System.Security.Cryptography
http://japrogbits.blogspot.co.nz/2011/02/using-encrypted-data-between-python-and.html
这篇关于如何在Python中加密和在C#中解密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!