Convert java code to C# .NET

Cerrado Publicado Sep 2, 2011 Pagado a la entrega
Cerrado Pagado a la entrega

import [url removed, login to view];

import [url removed, login to view];

import [url removed, login to view];

public class ClientAuthentication

{

static MessageDigest messageDigest;

private static int index = 0;

private static final char[] toHex = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };

public static void init()

{

try

{

messageDigest = [url removed, login to view]("MD5");

}

catch (Exception e)

{

}

}

public static String generateCnonce()

{

Date date = new Date();

long time = [url removed, login to view]();

Random rand = new Random();

long pad = [url removed, login to view]();

String nonceString = new Long(time).toString() + new Long(pad).toString();

byte[] mdbytes = [url removed, login to view]([url removed, login to view]());

return toHexString(mdbytes);

}

public static String toHexString(byte[] b) {

int pos = 0;

char[] c = new char[[url removed, login to view] * 2];

for (int i = 0; i < [url removed, login to view]; i++) {

c[(pos++)] = toHex[(b[i] >> 4 & 0xF)];

c[(pos++)] = toHex[(b[i] & 0xF)];

}

return new String(c);

}

public static String generateResponse(String username, String nonce, String cnonce, String password)

{

String realm = "[url removed, login to view]";

String A1 = username + ":" + realm + ":" + password;

String A2 = "sansay-the-master-of-voip";

byte[] mdbytes = [url removed, login to view]([url removed, login to view]());

String HA1 = toHexString(mdbytes);

mdbytes = [url removed, login to view]([url removed, login to view]());

String HA2 = toHexString(mdbytes);

String KD = HA1 + ":" + nonce;

KD = KD + ":" + cnonce;

KD = KD + ":" + HA2;

mdbytes = [url removed, login to view]([url removed, login to view]());

String mdString = toHexString(mdbytes);

return mdString;

}

}

Ax this project

.NET Programación en C# Java

Nº del proyecto: #1192808

Sobre el proyecto

21 propuestas Proyecto remoto Activo Oct 3, 2011

21 freelancers están ofertando un promedio de $30 por este trabajo

Fenrir32

It's ready. Check pmb please.

$30 USD en 0 días
(74 comentarios)
6.2
it2051229

Hi, kindly check your inbox for my inquiries. Thanks.

$30 USD en 0 días
(187 comentarios)
6.2
kevinxiaozi

Dear sir, I am strong in java and C# programming especially in cryptography algorithm such as hash, signature, encryption and decryption. I have implemented them in java and C# and I am familiar with them because my Más

$30 USD en 0 días
(27 comentarios)
5.4
deadhunt

Hi, I'm java programmer. Please check PMB. Thanks.

$30 USD en 1 día
(39 comentarios)
4.9
Peterpay

i can do this asap

$30 USD en 0 días
(7 comentarios)
4.6
gaddas86

Hello! I'm C# and Java coder. Can easily convert this source to c#.

$30 USD en 1 día
(26 comentarios)
4.2
abbie3290

Lets start.

$30 USD en 1 día
(14 comentarios)
4.0
valleycoder2011

I have good C# knowledge, have some Java experience. Please check PM

$30 USD en 0 días
(9 comentarios)
3.5
thequyen

Hi, I have 5 years of experience in software development windows with C#. I'm very excited about this project, hopefully soon be able to participate ...

$30 USD en 1 día
(5 comentarios)
3.2
HardikR

Please check pm.

$30 USD en 0 días
(3 comentarios)
3.2
prafullgoyal

============Please SEE PMB=============

$30 USD en 1 día
(2 comentarios)
3.0
barneycoder

Hi, I can work on this project. Its a very simple one. Check your PM for further details. Thanks, Barney

$30 USD en 1 día
(2 comentarios)
2.1
sanjuintelligo

i am an expert programmer in C#.net and java. i can convert the given code

$30 USD en 1 día
(0 comentarios)
0.0
Sashalami

Hi Iam very interested in this work. I can complete it within a day. Please check your inbox for more details.

$30 USD en 0 días
(0 comentarios)
1.4
medasept

Hello, I done this task for you. I checked performance with a fixed date and a fixed random pad. I can show at your request a working demo. Now i go to sleep, so if you agree I will be available to send you sources fro Más

$30 USD en 0 días
(0 comentarios)
0.0
GeekOnBoard

Please consider me for this assignment, I've prior experience on encryption strategies

$35 USD en 1 día
(0 comentarios)
0.0
krishnasaie

I can convert the code to c#.

$30 USD en 10 días
(0 comentarios)
0.0
fmdev

Greetings, let me know how can I help you. Thanks.

$30 USD en 1 día
(0 comentarios)
0.0
AlexanderKozlov

Hi, I can translate from Java to C# very quickly. BR, Alexander

$30 USD en 1 día
(0 comentarios)
0.0
Sholdorf

I am a 40 hrs. a week full-time software engineer. I am looking for an extra 10 - 15 hrs. per week evenings and weekends work. As you can see from my profile and test scores I am well qualified. Google my name on the i Más

$30 USD en 3 días
(0 comentarios)
0.0