EG Information
Training Missions
Knowledge Bank
Pimp Us Out!
Has Enigma Group Helped You? Then Help Us By Advertising For Us. Place One Of The Following Images On Your Site And Create A Link Back To Enigma Group.
|
| |
Affiliates
|
|
Enigma Group's Code Bank
Vigenere cipherBy: InjectioN - Date Submitted: 2011-08-08 18:27:49 ############################################################# ############ Vigenere Cipher by InjectioN ################### ############################################################# count = 0 Output = [] Encrypted = [] KeyList = [] StringList = [] Alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] print("What would you like to do:") print("Options:") print("1 - Encrypt") print("2 - Decrypt") print() while 1==1: Option = int(input("Option = " )) Key = input("Please enter the key you'd like to use: ") String = input("Please enter the String you'd like to encrypt/decrypt: ") String = String.replace(' ', '') KeyLength = len(Key) StringLength = len(String) OverLap = StringLength % KeyLength LeftOvers = Key[:OverLap] Random = StringLength-OverLap Random = StringLength/KeyLength Key = (int(Random)*Key)+LeftOvers for i in Key: Number = Alphabet.index(i.upper()) KeyList.append(Number) for i in String: Number = Alphabet.index(i.upper()) StringList.append(Number) i = 0 if(Option == 1): while count < StringLength: Encrypted.append((StringList[i]+KeyList[i])%26) count += 1 i += 1 for N in Encrypted: Output.append(Alphabet[N]) elif(Option == 2): while count < StringLength: Encrypted.append((StringList[i]-KeyList[i])%26) count += 1 i += 1 for N in Encrypted: Output.append(Alphabet[N]) String = ''.join(Output) print() print('OUTPUT::') print() print(String) print() print()
|
| Return to
python category list |
|
|
Who Visited EnigmaGroup Today?
1385 Guests, 225 Users (216 Spiders)
TheCheeseDemon, MineDweller, Pabz, lolzsec, terrorbyte, dark_void, Nightraven, cat1vo, interspirehost, lamb, tgm001, plex, Edika, rockcraft, recoveryToolbox, saraf, soufiaane, sickmind, mjneat, famous0123, Galagatron, CJ_Omaha, junaid_junaid59, JohnJohnJohn, ssmaslov, psychomarine, Dregoon, Patrickk, Aska, Beat_Slayer, M0rdak, Ausome1, Imre, Vreality2007, mmndglxuwn, m0rt, unholyblood, iterrumzz, VurbTrurb, Mayonoula, MAMWOURBROR, mutabor, gobinda, cossyDrybrich, Razin, zaCruBumas8, hunja, johny34, pantoufle, bagy, arctica, hackarchives, UsedDeteKef, Peculator, Fadhilat606, TheTrueMonarch, Pascall01, hackaday, Tjm, arndevil, flairvelocity, lol, alphbond, kdivanov, elizbethallis6, Rik, bn11, BorgBot, SHASHANK101hello, 4poc4lyptic, ksajxai, nbmorri1, electro-technic, شمالي عرعر, AutobotPrime, Underleaf, The End, tomtombomb, killobyte, snowgirlx, so_saucey, zerolife, Althor, Cramps, Hekser, Hyperborn, cyber-guard, jhgrunn, cobra, Partisan, MAZI_, cyborg, GenbreedX, moel77, cliptoX, pwnpwnlolz, letshavepie, Mrwormz, yshiau, mirmo, roozyoppomo, soft_devil, cls777, scoobywan, Reiversed, joshua, st3alth, Afrika, PaiffDryday, venter, Anthony12796, sh3llcod3, 8FIGURE, Rannim, Evil1, maloaboy, BACanON, SlayingDragons, Repuhlsive, IvanDimitriev, 1RiB, mzungudo, Micro_Geek, iMaxx, aciboummamymn, k0unterkulcher, somebody777, m14m16, GoododotAlcob, negasora, Rastii, UninueMem, Swifsolja, ad.conquest, ngolatkar, Infinity8, Jigoku, thesupervisor, p0is0n5ting, kernel_mod, AKL, GothicLogic, themastersinner, dnatrixene135, ChewBigRed, kalak55, sejem, cve916, pollolololo, triecturn, Violatedsmurf, Ops, jmp, xsiemich, generalisimo, strudels, ga3ttpom, KingOfBritains, epoch_qwert, suten, FriskyKat, Ryuske, Adonis Achilles, ubqbcdzzhf, 3vil, US£RNAM£, Weindittewcon, Batesheelocot, GSmyrlis, MaxMeier, Elite.America, rabbidmind, Psiber_Syn, phoenix22, imittyerrotte, peewster, cyberturtle, ctb, dexgeda, sdw, Pizza, White_widdow, devarian, finesse, Nature112091777, Danc7171, Alphadragon, Estadagause, 53QR10U5, Xargos, Alkomage, hardlock, Barry Gonzoles, Gkjt, N4g4c3N, [I]nfectedbug, wimsteege, aqr5zdcw, xin214, Bugshuppy, SnoopSky, Hessesian, voodooKobra, sKcarr, IROverRated, W1F1G3NJU75U, Baddy, ziadmosaan, gamble86, realzs, CruelDemon, Shinju, aVoid, aquiredanonymity, kukumumu, web_request, callmeneon, KissMyDAFFODIL, Feld Grau, Abhinav2107, prabhataditya, mbuyiselo, shumer, phenom216, princennamdi |
| |
|
|
|
|
|