纯Python Salsa20流密码实现 [英] Pure Python Salsa20 Stream Cipher Implementation

查看:400
本文介绍了纯Python Salsa20流密码实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计,


适合那些熟悉micropledge.com项目的人,

这是一个花钱或赚钱的好机会:
http://micropledge.com/projects/pysalsa20


我知道这个项目的细节还有点不清楚,但

这是我们可以讨论的。顺便说一句,最终结果应该是
看起来它是python标准库的一部分(命名

约定等),当然它将是开放的来源。


谢谢

Ich

Hi Folks,

for those of you who are familiar with the micropledge.com project,
here is a good opportunity to spend or earn something:
http://micropledge.com/projects/pysalsa20

I know that the details of this project are still a bit unclear, but
that is something we could discuss. By the way, the end result should
look like it''s a part of the python standard library (naming
conventions, etc.) and of course it will be open source.

Thanks
Ich

推荐答案

是************** @ gmail.com 写道:$ b对于那些熟悉micropledge.com项目的人来说,$ b
be**************@gmail.com writes:



这是一个花钱或赚钱的好机会:
http://micropledge.com/projects/pysalsa20



我不明白为什么salsa20的纯python版本会很有趣。是否有一些使用salsa20的应用程序,那些值得能够与纯Python进行互操作的



如果你只想要一个流密码纯python(包括它的

标准库),最快的方法似乎是能够使用sha

模块作为构建块:

http://www.nightsong.com/phr/crypto/p3。 py


* *************@gmail.com 写道:

适合那些熟悉微动物的人。 com项目,

这是一个花钱或赚钱的好机会:
http://micropledge.com/projects/pysalsa20



顺便说一句,这里是C中salsa20的简洁实现:

http://www.nightsong.com/phr/crypto/salsa20.c


也许可以比转换参考实现更方便地转换为python


By the way, here is a concise implementation of salsa20 in C:

http://www.nightsong.com/phr/crypto/salsa20.c

maybe it could be converted to python more conveniently than
converting the reference implementation.


2月8日17:18,Paul Rubin< http://phr...@NOSPAM.invalidwrote:
On 8 Feb., 17:18, Paul Rubin <http://phr...@NOSPAM.invalidwrote:

我不是理解为什么salsa20的纯python版本会很有趣。是否有一些应用程序使用salsa20,那个'b
值得在纯python中进行互操作?
I don''t understand why a pure python version of salsa20 would be
interesting. Is there some application that uses salsa20, that''s
worth being able to interoperate with in pure python?



纯python的原因是它将独立于

平台。 C实现更快,但您需要在每个平台上编译它为
。 python实现没有那个问题,并且可以使用
来支持。

The reason for a pure python is that it would be independent from the
platform. A C implementation is faster, but you need to compile it for
every platform. A python implementation doesn''t have that problem and
could be used to fall back upon.


这篇关于纯Python Salsa20流密码实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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