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
cryptoFunctionsBy: c0re - Date Submitted: 2010-09-03 07:12:19 <?php /*************************************************************************** * cryptoFunctions.php * v1.0 * ================================================================= * contains functions to encode-decode/crypt-decrypt/cipher-encipher * messages using a number of different methods, not included in php * **************************************************************************** **************************************************************************** * Changelog * ========= * v 1.0 - 2010/09/03 * - initial release * **************************************************************************/ //ASCII to Binary conversion function asc2bin($str) { $newstring = 0; for ($n = 0; $n < count($text_array) - 1; $n++) { } } //Binary to ASCII conversion function bin2asc($str) { $newstring = 0; for ($n = 0; $n < count($text_array) - 1; $n++) { } } //ASCII to Hexadecimal conversion function asc2hex($str) { } //Hexadecimal to ASCII conversion function hex2asc($str) { $newstring = 0; for ($n=0; $n<strlen ($str); $n+=2) { } } //Binary to Hexadecimal conversion function binary2hex($str) { $newstring = 0; for ($n = 0; $n < count($text_array) - 1; $n++) { } } //Hexadecimal to Binary conversion function hex2binary($str) { $newstring = 0; for ($n = 0; $n < count($text_array) - 1; $n++) { } } //Ceasar Cipher Bruteforce <http://en.wikipedia.org/wiki/Caesar_cipher> function caesarbf($str) { $alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; echo "<table width=\"85%\" cellpadding=\"2\" align=\"center\">\n"; for ($n = 1; $n < 26; $n++) { echo '<tr bgcolor="#eeeeee">'; } echo '<tr bgcolor="#cccccc">'; } } } //HTML encode function entityenc($str) { $newstring = 0; for ($n = 0; $n < count($text_array) - 1; $n++) { $newstring .= "&#" . ord($text_array[$n]) . ";"; } } //HTML decode function entitydec($str) { $newstring = 0; for ($n = 0; $n < count($text_array) - 1; $n++) { $newstring .= chr(substr($text_array[$n], 2, 3)); } } //l33t 5pe4k encode <http://en.wikipedia.org/wiki/Leet> function l33t($str) { $newstring = 0; $from = 'ieastoIEASTO'; $to = '134570134570'; $newstring = strtr($str, $from, $to); } //l33t 5pe4k decode <http://en.wikipedia.org/wiki/Leet> function del33t($str) { $newstring = 0; $from = '134570'; $to = 'ieasto'; $newstring = strtr($str, $from, $to); } //Pig-Latin encode <http://en.wikipedia.org/wiki/PigLatin> function igpay($str) { $newstring = 0; for ($n = 0; $n < count($text_array); $n++) { $newstring .= substr($text_array[$n], 1) . substr($text_array[$n], 0, 1) . "ay "; } } //Pig-Latin decode <http://en.wikipedia.org/wiki/PigLatin> function unigpay($str) { $newstring = 0; for ($n = 0; $n < count($text_array); $n++) { $newstring .= substr($text_array[$n], -3, 1) . substr($text_array[$n], 0, strlen($text_array[$n]) - 3) . " "; } } //ROT13 DE/ENcode <http://en.wikipedia.org/wiki/Rot_13> function rot13($str) { $newstring = 0; $from = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $to = 'nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM'; $newstring = strtr($str, $from, $to); } //DE/ENchipher Atbash <http://en.wikipedia.org/wiki/Atbash> function atbash($str) { $newstring = 0; $from = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $to = 'zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA'; $newstring = strtr($str, $from, $to); } //NOT A CRYPTO FUNCTION, BUT STILL KINDA USEFULL //strip spaces from a string function strip_spaces($str) { } ?>
|
| Return to
php category list |
|
|
Who Visited EnigmaGroup Today?
1388 Guests, 226 Users (217 Spiders)
cat1vo, Nightraven, lolzsec, interspirehost, lamb, Pabz, tgm001, plex, Edika, TheCheeseDemon, rockcraft, recoveryToolbox, saraf, soufiaane, sickmind, mjneat, famous0123, Galagatron, dark_void, 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, MineDweller, 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, huskyboiza, ninety-nine |
| |
|
|
|
|
|