Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,825 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,956 people online right now. Registration is fast and FREE... Join Now!




Encryption + compression

 
Reply to this topicStart new topic

Encryption + compression, this will enrypt any base 10 information

Rating  2
evolivid
24 Jul, 2008 - 09:40 PM
Post #1

New D.I.C Head
*

Joined: 24 Jul, 2008
Posts: 28


My Contributions


CODE

open INF, ("C:/you file /here.log");
while (<INF>) {
m/(\d\d)/;
$a = $1;
s/$1/a/ig;  

m/(\d\d)/;
$b = $1;
s/$1/b/ig;  


m/(\d\d)/;
$c = $1;
s/$1/c/ig;  

m/(\d\d)/;
$d = $1;
s/$1/d/ig;  

m/(\d\d)/;
$e = $1;
s/$1/e/ig;  

m/(\d\d)/;
$f = $1;
s/$1/f/ig;  

m/(\d\d)/;
$g = $1;
s/$1/g/ig;  

m/(\d\d)/;
$h = $1;
s/$1/h/ig;  

m/(\d\d)/;
$i = $1;
s/$1/i/ig;  

m/(\d\d)/;
$j = $1;
s/$1/j/ig;  



m/(\d\d)/;
$k = $1;
s/$1/k/ig;  

m/(\d\d)/;
$l = $1;
s/$1/l/ig;  


m/(\d\d)/;
$m = $1;
s/$1/m/ig;  

m/(\d\d)/;
$n = $1;
s/$1/n/ig;  

m/(\d\d)/;
$o = $1;
s/$1/o/ig;  

m/(\d\d)/;
$p = $1;
s/$1/p/ig;  

m/(\d\d)/;
$q = $1;
s/$1/q/ig;  

m/(\d\d)/;
$r = $1;
s/$1/r/ig;  

m/(\d\d)/;
$s = $1;
s/$1/s/ig;  

m/(\d\d)/;
$t = $1;
s/$1/t/ig;  




m/(\d\d)/;
$u = $1;
s/$1/u/ig;  

m/(\d\d)/;
$v = $1;
s/$1/v/ig;  


m/(\d\d)/;
$w = $1;
s/$1/w/ig;  

m/(\d\d)/;
$x = $1;
s/$1/x/ig;  

m/(\d\d)/;
$y = $1;
s/$1/y/ig;  

m/(\d\d)/;
$z = $1;
s/$1/z/ig;  




m/(\d\d)/;
$A = $1;
s/$1/~/ig;  

m/(\d\d)/;
$B = $1;
s/$1/!/ig;  


m/(\d\d)/;
$C = $1;
s/$1/@/ig;  

m/(\d\d)/;
$D = $1;
s/$1/#/ig;  

m/(\d\d)/;
$E = $1;
s/$1/%/ig;  

m/(\d\d)/;
$F = $1;
s/$1/^/ig;  

m/(\d\d)/;
$G = $1;
s/$1/G/ig;  

m/(\d\d)/;
$H = $1;
s/$1/H/ig;  

m/(\d\d)/;
$I = $1;
s/$1/I/ig;  

m/(\d\d)/;
$J = $1;
s/$1/J/ig;  



m/(\d\d)/;
$K = $1;
s/$1/K/ig;  

m/(\d\d)/;
$L = $1;
s/$1/L/ig;  


m/(\d\d)/;
$M = $1;
s/$1/M/ig;  

m/(\d\d)/;
$N = $1;
s/$1/N/ig;  

m/(\d\d)/;
$O = $1;
s/$1/O/ig;  

m/(\d\d)/;
$P = $1;
s/$1/P/ig;  

m/(\d\d)/;
$Q = $1;
s/$1/Q/ig;  

m/(\d\d)/;
$R = $1;
s/$1/R/ig;  

m/(\d\d)/;
$S = $1;
s/$1/S/ig;  

m/(\d\d)/;
$T = $1;
s/$1/T/ig;  




m/(\d\d)/;
$U = $1;
s/$1/U/ig;  

m/(\d\d)/;
$V = $1;
s/$1/V/ig;  


m/(\d\d)/;
$W = $1;
s/$1/W/ig;  

m/(\d\d)/;
$X = $1;
s/$1/X/ig;  

m/(\d\d)/;
$Y = $1;
s/$1/Y/ig;  

m/(\d\d)/;
$Z = $1;
s/$1/Z/ig;

m/(\d\d)/;
$Ç = $1;
s/$1/Ç/ig;

m/(\d\d)/;
$ü = $1;
s/$1/ü/ig;

m/(\d\d)/;
$é = $1;
s/$1/é/ig;

m/(\d\d)/;
$â = $1;
s/$1/â/ig;

m/(\d\d)/;
$ä = $1;
s/$1/ä/ig;

m/(\d\d)/;
$à = $1;
s/$1/à/ig;

m/(\d\d)/;
$å = $1;
s/$1/å/ig;

m/(\d\d)/;
$ç = $1;
s/$1/ç/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/ig;

m/(\d\d)/;
$¡ = $1;
s/$1/¡/ig;

m/(\d\d)/;
$« = $1;
s/$1/«/ig;


m/(\d\d)/;
$» = $1;
s/$1/»/ig; #175

m/(\d\d)/;
$ß = $1;
s/$1/ß/ig; #225

m/(\d\d)/;
$¶ = $1;
s/$1/¶/ig; #227

m/(\d\d)/;
$µ = $1;
s/$1/µ/ig; #230






print ($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 "\n";
print ($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 "\n";
print
($Ç,$ü,$é,$â,$ä,$à,$å,$ç,$ê,$ë,$è,$ï,$î,$ì,$Ä,$Å,$É,$æ,$Æ,$ô,$ö,$ò,$û,$ù,$Ö,$Ü);
print "\n";
print
($¢,$£,$¥,$á,$í,$ó,$ú,$ñ,$Ñ,$ª,$º,$¿,$¬,$½,$¡,$«,$»,$ß,$¶,$µ);
print"\n";
print (),"\n";

}
close INF;


User is offlineProfile CardPM
+Quote Post

NickDMax
RE: Encryption + Compression
25 Jul, 2008 - 08:06 PM
Post #2

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,859



Thanked: 50 times
Dream Kudos: 550
My Contributions
did you mean to submit this as a snippet, or is it broken? In which case what is the issue?
User is offlineProfile CardPM
+Quote Post

KevinADC
RE: Encryption + Compression
25 Jul, 2008 - 09:52 PM
Post #3

D.I.C Head
Group Icon

Joined: 23 Jan, 2007
Posts: 216



Thanked: 3 times
Dream Kudos: 50
My Contributions
This is encryption? I don't think so. Weird.
User is offlineProfile CardPM
+Quote Post

perfectly.insane
RE: Encryption + Compression
1 Aug, 2008 - 06:20 PM
Post #4

D.I.C Addict
Group Icon

Joined: 22 Mar, 2008
Posts: 558



Thanked: 46 times
Dream Kudos: 25
Expert In: C/C++

My Contributions
It's very secure. The reason is that it is not possible to decrypt the data at all, because the data is thrown out.
User is offlineProfile CardPM
+Quote Post

evolivid
RE: Encryption + Compression
13 Aug, 2008 - 12:12 AM
Post #5

New D.I.C Head
*

Joined: 24 Jul, 2008
Posts: 28


My Contributions
QUOTE(perfectly.insane @ 1 Aug, 2008 - 07:20 PM) *

It's very secure. The reason is that it is not possible to decrypt the data at all, because the data is thrown out.



This code would take light years to crack with a supercomputer
and would cost the Government millions to crack if it got in to the wrong hands...
I was able to write a code to decrypt it perfectly !


QUOTE
The CIA knows 911 was brewed with the help from the 3 kings of persia which are really fallen angels and if they ask you to choose a side I would suggest you request a side of french frys











User is offlineProfile CardPM
+Quote Post

evolivid
RE: Encryption + Compression
29 Sep, 2008 - 02:41 PM
Post #6

New D.I.C Head
*

Joined: 24 Jul, 2008
Posts: 28


My Contributions
ok it seems know one has tryed to make the decrypt code for this
so i guess i will give you the decrypt code note for this
to work properly you need to put all the keys (or the funny looking chars ) on one line REPEAT put all chars (\d)(\d) = {a <- on one line}
or this wont work, you might have to retype the whole code out by hand for some reason i had to do this when copy and paste wasnt working i dont know why but it seems perl dosent like cut and pasters
so if it doesnt work right,, rewrite both the incrypt and decrypt programs by hand on windows i found this is the only way it works ! heres the code

if anyone has some tips on how to make this in less code please feel free to let me know thankx

CODE


open INF, ("C:/Documents and Settings/Mark Baker/Desktop/file6.pl");
while (<INF>) {


m/(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)/;


$a = $1;$b = $2;$c = $3; $d = $4;$e = $5;$f = $6;$g = $7;$h = $8;$i = $9;
$j = $10;$k = $11;$l = $12;$m = $13;$n = $14;$o = $15;$p = $16;$q = $17;
$r = $18;$s = $19;$t = $20;$u = $21;$v = $22;$w = $23;$x = $24;$y = $25;
$z = $26;$A = $27; $B = $28;$C = $29;$D = $30;$E = $31;$F = $32;$G = $33;
$H = $34;$I = $35;$J = $36;$K = $37;$L = $38;$M = $39;$N = $40;$O = $41;
$P = $42;$Q = $43;$R = $44;$S = $45;$T = $46;$U = $47;
$V = $48;$W = $49;$X = $50;$Y = $51;$Z = $52;$Ç = $53;$ü = $54;
$é = $55;$â = $56;$ä = $57;$à = $58;$å = $59;$ç = $60;$ê = $61;$ë = $62;$è = $63;
$ï = $64;$î = $65;$ì = $66;$Ä = $67;$Å = $68;$É = $69;$æ = $70;$Æ = $71;$ô = $72;
$ö = $73;$ò = $74;$û = $75;$ù = $76;$Ö = $77;$Ü = $78;$¢ = $79;$£ = $80;$¥ = $81;
$á = $82;$í = $83;$ó = $84;$ú = $85;$ñ = $86;$Ñ = $87;$ª = $88;$º = $89;$¿ = $90;
$¬ = $91;$½ = $92;$¼ = $93;$¡ = $94;$« = $95;$» = $96;$ß = $97;$¶ = $98;$µ = $99;
$aa=$100;$ab=$101;$ac=$102;$ad=$103;$ae=$104;$af=$105;$ag=$106;$ah=$107;$ai=$108;
$aj=$109;$ak=$110;$al=$111;$am=$112;$an=$113;$ao=$114;$ap=$115;$aq=$116;$ar=$117;
$as=$118;$at=$119;$au=$120;$av=$121;$aw=$122;$ax=$123;$ay=$124;$az=$125;$ba=$126;
$bb=$127;$bc=$128;$bd=$129;$be=$130;$bf=$131;$bg=$132;$bh=$133;$bi=$134;$bj=$135;
$bk=$136;$bl=$137;$bm=$138;$bn=$139;$bo=$140;$bp=$141;$bq=$142;$br=$143;$bs=$144;
$bt=$145;$bu=$146;$bv=$147;$bw=$148;$bx=$149;$by=$150;$bz=$151;$ca=$152;$cb=$153;
$cc=$154;$cd=$155;$ce=$156;$cf=$157;$cg=$158;$ch=$159;$ci=$160;$cj=$161;$ck=$162;
$cl=$163;$cm=$164;$cn=$165;$co=$166;$cp=$167;$cq=$168;$cr=$169;$cs=$170;$ct=$171;
$cu=$172;$cv=$173;$cw=$174;$cx=$175;$cy=$176;$cz=$177;$da=$178;$db=$179;$dc=$180;
$dd=$181;$de=$182;$df=$183;$dg=$184;$dh=$185;$di=$186;$dj=$187;$dk=$188;$dl=$189;
$dm=$190;$dn=$191;$do=$192;$dp=$193;$dq=$194;$dr=$195;$ds=$196;$dt=$197;$du=$198;




s/a/$a$b/g;s/b/$c$d/g;s/c/$e$f/g;s/d/$g$h/g;s/e/$i$j/g;s/f/$k$l/g;
s/g/$m$n/g;s/h/$o$p/g;s/i/$q$r/g;s/j/$s$t/g;s/k/$u$v/g;s/l/$w$x/g;
s/m/$y$z/g;s/n/$A$B/g;s/o/$C$D/g;s/p/$E$F/g;s/q/$G$H/g;s/r/$I$J/g;
s/s/$K$L/g;s/t/$M$N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dp$dq/g;
s/¶/$dr$ds/g;
s/µ/$dt$du/g;






print (),"\n";

}
close INF;


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 03:23PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month