![]() |
|
Python RC4 Script - Printable Version +- Southperry.net (https://www.southperry.net) +-- Forum: Social (https://www.southperry.net/forumdisplay.php?fid=14) +--- Forum: Rubik's Cube (https://www.southperry.net/forumdisplay.php?fid=58) +--- Thread: Python RC4 Script (/showthread.php?tid=7502) |
Python RC4 Script - Fiel - 2009-01-19 Just thought I'd post this because I can. Python 2.6 compliant Code: import structHere's how to use it in Python: >>> Crypto = RC4() #Create instance >>> EncryptedText = Crypto.crypt("Hello, World!") >>> DecryptedText = Crypto.crypt(EncryptedText) >>> print DecryptedText Hello, World! Or, if you want, you can choose to define the keys to use in the algorithm. >>> Crypto = RC4([0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77]) >>> EncryptedText = Crypto.crypt("Hello, World!") >>> DecryptedText = Crypto.crypt(EncryptedText) >>> print DecryptedText Hello, World! Python RC4 Script - Sn1perJohnE - 2009-01-20 i needa learn python again >_> pygames ftw? |