|
KaKoten wrote: or code implement to GUI in visual c# www.youtube.com/watch?v=hkDD03yeLnU[^]
I'm still not sure exactly what you're doing, but I can almost guarantee you that a GUI will be completely irrelevant.
|
|
|
|
|
Yes but i'm want to try using differential attack or bruteforce attack to find the key, btw thanks for the answer
|
|
|
|
|
What they mean is partly:
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
And partly:
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
Try it yourself, you may find it is not as difficult as you think!
So if you have a specific problem with your implementation, then we will help - if you tell us what the problem is.
But if you want us to write it for you, then you have come to the wrong site!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Sorry for the questions are a little disturbing, I wonder a little about saving all have to add any type of file that the file can be read:
code from encryption but add file nothing without type file. thanks for help in me
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text.Length < 5)
{
password = textBox1.Text + "addto";
}
if (save())
{
try
{
password = textBox1.Text;
System.IO.FileStream streamreader1 = new System.IO.FileStream(fileName, System.IO.FileMode.Open, System.IO.FileAccess.Read);
System.IO.FileStream streamwriter1 = new System.IO.FileStream(saveFileName, System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write);
rounds = (int)numericUpDown1.Value;
Rc5 rc = new Rc5(password, rounds);
rc.Encrypt(streamreader1, streamwriter1);
}
catch
{
MessageBox.Show("file may be in use by another process", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
|
|
|
|
|
This is probably a translation problem, but I don't understand what you are trying to ask.
Perhaps an example of what is happening and what you want to happen would help?
The Rc5 class is not one I've seen - is it your own class? And if not, where is it? I don't remember it from the .NET framework.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
sorry for the bad language, i have a little problem encrypt direct to save but saving file nothing without the type of file,
this forum can be include the picture of my problems (programs) ?
code for encryption direct to saving the cipher file:
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text.Length < 5)
{
password = textBox1.Text + "addto";
}
if (save())
{
try
{
password = textBox1.Text;
System.IO.FileStream streamreader1 = new System.IO.FileStream(fileName, System.IO.FileMode.Open, System.IO.FileAccess.Read);
System.IO.FileStream streamwriter1 = new System.IO.FileStream(saveFileName, System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write);
rounds = (int)numericUpDown1.Value;
Rc5 rc = new Rc5(password, rounds);
rc.Encrypt(streamreader1, streamwriter1);
}
catch
{
MessageBox.Show("file may be in use by another process", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
|
|
|
|
|
Oh, and by the way, please try to use code blocks (<pre> tags) to preserve your formatting - it makes things a lot easier to read.
if (textBox1.Text.Length < 5)
{
password = textBox1.Text + "addto";
}
if (save())
{
try
{
password = textBox1.Text; is shown as:
if (textBox1.Text.Length < 5)
{
password = textBox1.Text + "addto";
}
if (save())
{
try
{
password = textBox1.Text;
As you see in your question.
But...with tags:
<pre lang="cs">if (textBox1.Text.Length < 5)
{
password = textBox1.Text + "addto";
}
if (save())
{
try
{
password = textBox1.Text;</pre> It is shown as:
if (textBox1.Text.Length < 5)
{
password = textBox1.Text + "addto";
}
if (save())
{
try
{
password = textBox1.Text; Which is a lot, lot easier to follow!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Thanks for the answer but this code cannot for .NET web based but C# GUI Basic
|
|
|
|
|
No, not web based, but C# is very closely linked to the .NET framework: it doesn't work without it!
The .NET framework contains all the "useful" stuff: lists, objects, events, delegates, even the Console is a .NET framework object!
So where did you find the Rc5 class?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
RC5 class separate with primary class
|
|
|
|
|
Yes, fine.
But how can we help you when we have no idea what it contains?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
the contain, first import the file then direct encrypt without saving, second the same input the file (ciphertext) direct the button to decryption which become is the save not include the type of file etc: .txt, .mp3, .mpg, .jpg. thanks
|
|
|
|
|
So is all you need the filename without the extension? Because that's trivial...
string fn = Path.Combine(Path.GetDirectoryName(sourceFile), Path.GetFileNameWithoutExtension(sourceFile));
If not, could you please give an example of what you do want, because I can't understand you!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Thanks for this source, very help in me
|
|
|
|
|
You're welcome!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
|
thanks, the main class has separate to the second RC5 class
|
|
|
|
|
I took his first two posts as he was saying as he was trying to find the original key to an encrypted file.
|
|
|
|
|
Is it possible to get the machine name of the SQL box that executed a stored proc in a load balanced environment? I know I can modify all the stored proc to return @@servername somehow (i.e. optional output param), but trying to do it the least painful way possible.
|
|
|
|
|
We have a ModifiedBy field on every table to nail the user to the latest data, it would be trivial to add another field and grab the servername. Id the DB is too large you cold use a trigger spit to update the field. Great Ghu, I've recommended triggers spit twice today I feel dirty.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
Implementing a canvas with draw objects circle and Square and a connectivity line between the Draw objects. Dynamically placing the symbols on canvas and connecting with line connector. But i need the connecting line should drag,if i move the object on canvas.
Advice me, how i can do this and please provide any links.
Thanks & Regards,
Krishna Royal
|
|
|
|
|
What have you done so far? Any answer to this depends on what the canvas control is and how the objects to connect are represented.
|
|
|
|
|
Hi,
I am trying to connect from C# WinForm application to MySQL but getting the above error.
MySQL is on CentOS and I am connected through NaviCat without any problem with enabling SSH Tuning option in NaviCat.
here is my code in C#:
sql_connection = new MySqlConnection(xmlClass.get_connectionstring("BizCards\\BizCards"));
sql_connection.Open();
sql_command = new MySqlCommand("sp_populate_countries", sql_connection);
sql_command.CommandType = CommandType.StoredProcedure;
sql_adapter = new MySqlDataAdapter();
sql_adapter.SelectCommand = sql_command;
data_set = new DataSet();
sql_adapter.Fill(data_set, "countries");
DataViewManager dataview_manager = new DataViewManager(data_set);
DataView main_dataview = dataview_manager.CreateDataView(data_set.Tables["countries"]);
cboCountry.Properties.ValueMember = "country_code_alpha2";
cboCountry.Properties.DisplayMember = "country_name";
cboCountry.Properties.DataSource = main_dataview;
cboCountry.Properties.Columns.Add(new DevExpress.XtraEditors.Controls.LookUpColumnInfo("country_name", 50, "country_name"));
cboCountry.Properties.ShowHeader = false;
cboCountry.Properties.PopupSizeable = false;
cboCountry.Properties.ShowFooter = false;
cboCountry.Properties.PopupWidth = 50;
Technology News @ www.JassimRahma.com
|
|
|
|
|
What does your connection string look like?
|
|
|
|
|
server=xx;port=xx;database=xx;uid=xx;pwd=xx;connection timeout=xx
Technology News @ www.JassimRahma.com
|
|
|
|