|
Hi, I need to encrypt/decrypt some data for my C# application that can also be read on a unix system, and need a quick, simple, cross-platform solution I can embed in my own code that doesn't require dependencies on outside applications.
I don't know much about encryption. What I would like to do is come up with an encryption/decryption code that will work with my C#/.NET framework windows code (there are a number of cryptographic functions built into the .net framework) AND a unix program (could be perl, python, shell, C, etc). One requirement is that it should run on virtually any unix system without installing additional software.
AES, DES, public key, anything is really fine, but it should be a simple solution.
I have tried experimenting with a lot of code out there, but I am unfamiliar enough with the process that I can't get it to work, e.g., I create an encrypted file with my C# app, try to decrypt it using a PERL or python scrip on the other end, and, I can't get it to work.
If you have code in both C# on the .net side and on the unix side that would be greatly appreciated!
Thanks!
|
|
|
|
|
|
I really appreciate you posting a reply, but the problem with a solution like that is that I want something that will run unmodified on a unix system, without having to install compatibility libraries.
For example, I would like someone to help me perhaps in using the .NET framework's AES libraries, and then duplicating the same algorithm in, say, a unix perl script that would be able to decrypt the bits generated by the .net application. I'm expecting that both the .net code and the unix code would be quite short snippets of code.
|
|
|
|
|
You may want to look up simple encryption/decryption routines in Perl first, and then get that to work. After finding out what already exists on the Unix box, you can then program to it using .NET.
Assert(this);
|
|
|
|
|
Is it possible to get a progress report(for a progress bar) on a web request?
I am pulling data off the internet and I want a progress bar to show that the program is pulling the information off the internet. Any leads would be great.
Thanks for the help.
|
|
|
|
|
|
Dear Msr
How can I print , open , modify and save Word documents in arabic language from C# program in Vs.net 2002?
ahmed
|
|
|
|
|
Dear Msr
How can I print , open , modify and save Word documents in arabic language from C# program?
ahmed
|
|
|
|
|
hi
my problem do not solve yet ..
my problem is :
How to access control properties and change them from another Form ???
Please help Me ///
|
|
|
|
|
Read the forum rules, no one is going to help you if you act like a child
The solution you were provided in your previous thread was good, what was wrong with it?
modified 12-Sep-18 21:01pm.
|
|
|
|
|
hi
this solution is not true way for answer of my ask :
public class Form2 : Form
{
private TextBox _textBox;
public TextBox RemoteTextBox
{ get{ _textBox = value; } }
// ...
}
form2.RemoteTextBox = form1.textBox1;
and that don't change Form1.textbox1.text from Form2 . please help me and say other ways and give an example or source or article ....
thanks..
regards...
|
|
|
|
|
public class Form2 : Form
{
public TextBox textBox1;
}
public class Form1 : Form
{
public TextBox textBox1;
{
Form2 f = new Form2();
f.textBox1.Text=this.textBox1.Text;
}
}
|
|
|
|
|
hi
my problem do not solve yet ..
my problem is :
How to access control properties from another Form ???
Please help Me ///
|
|
|
|
|
Don't report the same question every few hours. It'll just get you ignored...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have an odd issue with this field. Previously, I could create a new message and set my own CorrelationId and my program was working fine. Now, when I try to set this property, I get an InvalidOperationException. Here is my code:
queue.MessageReadPropertyFilter.CorrelationId = true;
Message message = new Message(orderID.ToString(), new XmlMessageFormatter(new Type[] {typeof(String)}));
message.CorrelationId = orderId;
queue.Send(message);
If I randomly set the CorrelationId to a value such as "0305ba20-7160-4ddb-be81-58246a273b76\6157", it doesn't throw the exception. Anyone know why I previously could use any number for this field but now I can't? Is there a setting for this somewhere?
Thanks,
Brian
|
|
|
|
|
If you use VS .NET 2005 the debugger typically shows you a brief information why the InvalidOperationException has been thrown, like "File xyz musts be of type abc".
Does it provide some additional information in this case?
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
No, I'm using 2003 and it just give me the exception and stack trace. The msg inside the exception is "Identifier is not in the incorrect format". I assume that's a typo on MS' part, but I believe you are supposed to be able to supply any correlation ID and I know I had this working previously.
Thanks
|
|
|
|
|
Any ideas on this? What really confuses me is that I had this working with a integer correlationId like 12345. I tried running the exact project that had run before and now it doesn't. Has there been a service pack that could have changed this?
Thanks
|
|
|
|
|
I have never worked with Messaging and CorrelationIDs before, therefore I can't help you. Did you switch from .NET 1.1 to .NET 2.0 perhaps?
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
No, but thanks for the help. I have not upgraded anything myself, but I do keep Automatic Updates on, so a patch could have been applied.
|
|
|
|
|
You can use a correlation ID like this and it works.
@"00000000-0000-0000-0000-000000000000\6157"
I can use this, but would sure like to know what changed.
|
|
|
|
|
Greetings:
I need help: I have this DLL, originally written as a windows API library. It is a driver for a USB port. One of the most important functions that are imported from this DLL is one in which you must supply an "event" handle (the kind you create using "CreateEvent" from Win32 API). The idea is, this function accepts the event handle and then triggers that event to wakeup the receive-data thread.
I thought it would be a matter of using [ImportDll] directives to import the API functions that I would need, namely: CreateEvent, CloseHandle, SetEvent, ResetEvent and WaitForSingleObject. I thought all of these functions and procedures would be found in kernel32.DLL but when I try to execute any of these, I get the "MissingMethodException".
Has anybody done anything like this? Am I going about this the right way?
The bottom line is that the USB DLL requires an event, already created and not-signaled. When characters are received, the USB DLL internal code will signal the event and my thread will awaken to service the new characters. I don't see any .NET functions that create events that I can pass to this routine.
Thanks in advance to anybody that helps.
Mark
|
|
|
|
|
|
hi
i want to access Form1.textbox1.Text and change it from Form2 ,How to do that ???
|
|
|
|
|
Form2 needs access to textBox1. There are various ways you can accomplish this. One might be...
public class Form2 : Form
{
private TextBox _textBox;
public TextBox RemoteTextBox
{ get{ _textBox = value; } }
}
form2.RemoteTextBox = form1.textBox1;
|
|
|
|