Telegram Group & Telegram Channel
BRUTE-FORCE ATTACK: CRACKING THE CAESAR CIPHER

هجوم القوة الغاشمة: سحق تشفير القيصر


يشير مصطلح البحث بالقوة الغاشمة إلى تقنية البحث الشامل في مساحة المفتاح
للحصول على نتيجة واضحة. للقيام بذلك على تشفير قيصر ، يجب أن تبدأ قيمة المفتاح بـ 1وتستمر الى
نحو القيمة 25 حتى يتم العثور على مفتاح يفك تشفير النص المشفر بنجاح إلى رسالة ذات معنى.

static string BruteForce(string cipherText, int k)
{
string Generated = "";
for (int i = 0; i < cipherText.Length; i++)
{
if (cipherText[i] != ' ')
{
char d = char.IsUpper(cipherText[i]) ? 'A' : 'a';

int character = (((cipherText[i] + 26 - d) - k) % 26) + d;
Generated+= (char)character;
}
}
return Generated;
}


كود الاستدعاء لبدء عملية كسر التشفير
string cipher = "KHOOR"; // HELLO
for (int i = 1; i <= 25; i++)
{
richTextBox2.Text += "Test Key : " + BruteForce(cipher, i) + Environment.NewLine;

}



tg-me.com/CsharpWindowsForm/454
Create:
Last Update:

BRUTE-FORCE ATTACK: CRACKING THE CAESAR CIPHER

هجوم القوة الغاشمة: سحق تشفير القيصر


يشير مصطلح البحث بالقوة الغاشمة إلى تقنية البحث الشامل في مساحة المفتاح
للحصول على نتيجة واضحة. للقيام بذلك على تشفير قيصر ، يجب أن تبدأ قيمة المفتاح بـ 1وتستمر الى
نحو القيمة 25 حتى يتم العثور على مفتاح يفك تشفير النص المشفر بنجاح إلى رسالة ذات معنى.

static string BruteForce(string cipherText, int k)
{
string Generated = "";
for (int i = 0; i < cipherText.Length; i++)
{
if (cipherText[i] != ' ')
{
char d = char.IsUpper(cipherText[i]) ? 'A' : 'a';

int character = (((cipherText[i] + 26 - d) - k) % 26) + d;
Generated+= (char)character;
}
}
return Generated;
}


كود الاستدعاء لبدء عملية كسر التشفير
string cipher = "KHOOR"; // HELLO
for (int i = 1; i <= 25; i++)
{
richTextBox2.Text += "Test Key : " + BruteForce(cipher, i) + Environment.NewLine;

}

BY برمجة تطبيقات الويندوز C# Programming


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/CsharpWindowsForm/454

View MORE
Open in Telegram


برمجة تطبيقات الويندوز C Programming Telegram | DID YOU KNOW?

Date: |

The S&P 500 slumped 1.8% on Monday and Tuesday, thanks to China Evergrande, the Chinese property company that looks like it is ready to default on its more-than $300 billion in debt. Cries of the next Lehman Brothers—or maybe the next Silverado?—echoed through the canyons of Wall Street as investors prepared for the worst.

The seemingly negative pandemic effects and resource/product shortages are encouraging and allowing organizations to innovate and change.The news of cash-rich organizations getting ready for the post-Covid growth economy is a sign of more than capital spending plans. Cash provides a cushion for risk-taking and a tool for growth.

برمجة تطبيقات الويندوز C Programming from us


Telegram برمجة تطبيقات الويندوز C# Programming
FROM USA