Cast128/cast5 encryption

09/17/2011 19:18 TomasLT#1
Maybe some1 can explain how it works ? bcouse wih my cast5 cipher i can decrypt serverdh packet but can decrypt client dh packet.
Code:
public byte[] Decrypt(byte[] buffer) {
	
	//System.out.println(Arrays.toString(Security.getProviders()));
	cii = Cipher.getInstance("CAST5/CFB64/NoPadding", "BC");
	byte[] buff = buffer.clone();
	ivs = new IvParameterSpec("        ".getBytes());
	byte[] b = cryptkey.getBytes("ASCII");
	key = new SecretKeySpec(b, "CAST5");
	cii.init(Cipher.DECRYPT_MODE, key,ivs);
	buffer = cii.doFinal(buff);
	return buffer;
}
but this code cant decrypt client dh packet.
09/17/2011 20:21 BaussHacker#2
[Only registered and activated users can see links. Click Here To Register...]
09/17/2011 22:02 TomasLT#3
? And does it helps me ? its in C# i think
09/20/2011 11:46 -impulse-#4
Quote:
Originally Posted by TomasLT View Post
? And does it helps me ? its in C# i think
It means, get the plain blowfish crypto from any server/proxy source working for 5018+ and make the edits(in case it makes direct import from libeay32.dll) stated in Fang's post.