i'm trying to create a blowfish encryptdecrypt application just like in MIRC. for that i am using Chilkat libraries.
i'm not sure i have the exact settings as they are in mirc which using https://github.com/flakes/mirc_fish_10.
for example: i'm trying to encrypt the following text: "hi my name is" with the key: "Q1w2E3r4"
i'm using the following code to encode (also need to decode):
please help to match the encoding
asked Jun 06 '14 at 03:48
Test vectors for 64-bit blowfish are located here: https://www.schneier.com/code/vectors.txt
The 1st vector on the page is this:
key bytes clear bytes cipher bytes 0000000000000000 0000000000000000 4EF997456198DD78
Chilkat can reproduce these results with the following code:
Chilkat.Crypt2 crypt = new Chilkat.Crypt2(); crypt.CryptAlgorithm = "blowfish2"; crypt.KeyLength = 64; crypt.CipherMode = "ecb"; crypt.SetEncodedKey("0000000000000000", "hex"); crypt.PaddingScheme = 3; // In this case the input is already equal to the block size of the algorithm.. crypt.EncodingMode = "hex"; // Result is 4EF997456198DD78 MessageBox.Show(crypt.EncryptEncoded("0000000000000000"));
answered Jun 06 '14 at 10:05
for testing vector it works good - but still not same as mirc encryption. I wonder how come no similar project in chilkat for the one in mirc. I'm failing over and over to get the same results
answered Jun 06 '14 at 12:37