Tag : Cryptography

Title User Language Tags Description Date
Improved ARC4 (IARC4) weilawei Python

This code is public domain. Improved ARC4 (IARC4) contains a number of improvements over naive ARC4:

  • Takes a nonce alongside the key. They are padded, XOR'd, and hashed to produce a new key.
  • Drops the first 4096 iterations of the PRNG's state. (RC4-drop4096)
  • A KeyExpiredError will be raised after 255 iterations of the PRNG, excluding the initial drop.

It does not yet implement a more complex keystream generator or a larger state space. Additionally, this has not been cryptanalyzed and should not be considered secure or used in production. This is strictly experimental, and subject to change without notice.

Tested on Python 3.2.3 with PyCrypto 2.4.1 and python-bitstring 3.0.2.

July 20, 2012
M2Crypto-compatible root certificate list generator Mike Ivanov python

This modified version of the Heikki Toivonen's certdata2pem script automatically downloads the freshest certdata.txt file and converts it to PEM format. Requires M2Crypto.

August 24, 2010
Command Line to Add Certificates to Certificate Stores (Including the Intermediate CA Store) rengber C#

Certmgr is in the Windows 7 SDK

May 24, 2010
Prime, Perfect and Fibonacci Number Widget Class AJ. Mayorga python

A class Ive had in my snippets for awhile that can generate prime, perfect and fibonacci sequences as well as check whether or not a supplied value is any of them.

May 17, 2010
SimpleCryptSocketExt - SimpleCrypt Wrapper for Easy Socket, Client / Server Encryption AJ. Mayorga python

Lightweight drop-in encryption wrapper for various Client/Server solutions supporting protocols such as UDP, TCP, HTTP, HTTPS, FTP, RAW Sockets etc.

April 30, 2010
Simple Small Tweakable Encryption Solution -- SimpleCrypt AJ. Mayorga python

Encryption can sometimes be a nightmare, at least is my experience while Python has some excellent resources for encryption I found myself a lot of times needing an encryption solution that could port easily between VS C++, .NET, PHP, and Python projects that would be simple to implement and not rely on large bloated crypto libs.

April 1, 2010
Generate Cryptographically Random Key and IV using Win32 Cryptography JackOfAllTrades C Uses the Windows cryptography libraries to generate a cryptographically random key and IV (initialization vector) of a specified length. November 30, 2008