Mostrando las entradas con la etiqueta cryptography. Mostrar todas las entradas
Mostrando las entradas con la etiqueta cryptography. Mostrar todas las entradas

lunes, enero 21, 2008

Criptonomicon II




I finished the first part of Criptonomicon in the Spanshi Edition. It's one of the best novel I read ! I started to read the second part "Criptonomicon - El codigo Pontifex".

viernes, enero 04, 2008

Random MD5 hash in python

I've been working generating MD5 hashes. I wrote a python module called RandomMD5:


import hashlib
import random

def new():
m = hashlib.md5()
m.update(str(random.random()))
return m.hexdigest()


This module generate a new md5 hash randomically, it's to useful for any kind of security sessions (like web session, chat session, etc.)


import RandomMD5
...
import ChatServer

s = ChatServer.Session()

md5_hash = RandomMD5.new()

s.SessionKey = md5_hash