Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Renegade Client » APGAR cipher to C#/VB.Net
APGAR cipher to C#/VB.Net [message #368928] Sun, 25 January 2009 17:28 Go to previous message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma:
Colonel
A few others and I are attempting to convert the XWISP APGAR Cipher into C#/Vb.Net, we are very close but are stuck.

We need to Convert this:
Perl:
sub apgar_enc {
  my @v = map ord, split //, shift;
  my @r;
  my $U="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./";
  for (my $i = 0; $i < 8; $i++) {
    my $a = $v[$i];
    my $index=(($a & 1
                ? $a << ($a & 1) & $v[8-$i]
                : $a ^ $v[8-$i])
                & 0x3f);
    push @r, substr($U,$index,1)
  }
  join '', @r;
}


Into VB.Net or C#.

I have attempted both, resulting on a circle of problems.

My VB.Net Tries:

#1
"CODE"


#2

"CODE"


#3
"CODE"






C# - By Aca20031
"CODE"


C# Mixed mine and Aca's
#1
"CODE"


#2
"CODE"


#3
"CODE"


#4
"CODE"


Dave's C# Code:

"CODE"


small rainbow table of values:

Pass entered | APGAR | What Aca's (#1) code does
aaaaaaaa aaaaaaaa abbbbbbb
aaaaaaa1 aaaaaaaG abbbbbbH
zzzzzzzz 6aaaaaaa 6aaaaaaa
password WaIMMsbf WaINNtbf
AbCdEfGh akgcacck akhcbcdk
99999999 aWWWWWWW aXXXXXXX
chicken1 azcecchG azcfddhG



We would really appreciate if Blazer, DanPaul, or anyone could help.


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*

[Updated on: Sun, 25 January 2009 17:32]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Ports
Next Topic: Unable to install
Goto Forum:
  


Current Time: Sat Nov 23 23:38:11 MST 2024

Total time taken to generate the page: 0.00725 seconds