Expermicid Posted June 4, 2012 Share Posted June 4, 2012 (edited) Les dejo este code. Autor: sensei [lenguaje=python]#!/usr/bin/python #Cifrado Cesar (t2) #Author: sensei #twitter:@senseihackliza #site: senseihackliza.blogspot.com #RemoteExecution Hacking Group #http://www.0x3a.com.ar from string import maketrans from sys import argv if len(argv) !=3: print 'Usage: nombredelarchivo.py <"Text to crypt decrypt">' exit() option = argv[1] text = argv[2] if option=='c': crypt= maketrans('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' , 'cdefghijklmnopqrstuvwxyzabCDEFGHIJKLMNOPQRSTUVWXYZAB2345678901') print '\n' print 'Encrypted text:' print text.translate(crypt) if option=='d': decrypt= maketrans('cdefghijklmnopqrstuvwxyzabCDEFGHIJKLMNOPQRSTUVWXYZAB2345678901' , 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') print '\n' print 'Decrypted text:' print text.translate(decrypt) print '\n' print 'Caesar(t2) crypter/decrypter by sensei to #RemoteExecution Hacking Group'[/lenguaje] Saludos. Fuente: Oversec Edited February 16, 2014 by Expermicid Link to comment Share on other sites More sharing options...
Recommended Posts