Author: Meskiuss | Posted on: 11/6/2009 12:23:46 PM | Views : 437

Hi,
I'm trying to create a program which provides a key strength. Visual studio don't show errors, but the program hangs on QuadWordFromBigEndian functions. Whats wrong?
Thanks
 
private void button1_Click(object sender, EventArgs e) { byte[] sec_key = System.Text.Encoding.UTF8.GetBytes(textBox1.Text); if (IsWeakKey(sec_key)) { label1.Text = "Yes"; } else { label1.Text = "No"; } } private static bool IsLegalKeySize(byte[] sec_key) { if (sec_key.Length == 8) return(true); return(false); } private static UInt64 QuadWordFromBigEndian(byte[] block) { UInt64 x; x = ( (((UInt64)block[0]) << 56) | (((UInt64)block[1]) << 48) | (((UInt64)block[2]) << 40) | (((UInt64)block[3]) << 32 ...

Go to the complete details ...