|
sleepless_b wrote: how am i going to implement a secure model for the creation and safe strorage of the Symmetric Key on the server
You can't.
http://en.wikipedia.org/wiki/Symmetric-key_algorithm[^]
The disadvantage of symmetric-key algorithms is the requirement of a shared secret key, with one copy at each end. Since keys are subject to potential discovery by a cryptographic adversary, they need to be changed often and kept secure during distribution and in service. The consequent requirement to choose, distribute and store keys without error and without loss, known as key management, is difficult to reliably achieve.
You would have to use asymmetric encryption, provide a server and require a network connection during installation.
led mike
|
|
|
|
|
led mike wrote: You would have to use asymmetric encryption, provide a server and require a network connection during installation.
First of all thank u for replying..
I don't think i got that. I know all about asymmetric encryption but how could it help me on this? What does a network connection has to do during installation?
|
|
|
|
|
It allows you to keep the private key on your server so it can't be hacked locally during installation.
sleepless_b wrote: When the Application starts-up
Yeah.. missed that. That would require the same to occur at application start up.
Sorry but there is no "absolute" way of protecting symmetric encryption locally, all you can do is make it more difficult.
led mike
|
|
|
|
|
Hi
If you are storing your license information on server why can't you use a server based license checker?
Consider this scenario:
App Starts
App Sends its licensing data to server (it's been encrpyted by the server the first time the app is installed and client dosen't know how to decrypt it actually no one but the server should not know how to decrypt it)
Server decrpyts the data and checks its validity and if every thing is OK it let's App to work.
Regards
Nima H
|
|
|
|
|
Hello!
If i got it right, you mean that i should have an in-house server responsible for keeping licencing info(+encrypted keys) and every installed instance of my server-based softwrare in different servers of different companys that i have distributed it, should communicate with my in-house server in order to check the validity of its environment based on the encrypted licence i have stored in my in-house server. And this, for each time an application starts or a user tries to log himself in.
Is this what you mean?
|
|
|
|
|
Hi
Yes.I mean that if there can be a (or some) server(s) that can handle the licescing issues ,then clients don't have to know anything about them.
|
|
|
|
|
Hi,
I have an ArrayList populated by a text file made up of lines comprising 3 columns: ID, Duration, Description. They roughly look like this
12345678.abc 020 This is a description
12345678.abd 030 This is another description
etc
The ID column is always 12 characters, the duration is always 3 numbers, the description obviously can change from line to line.
Each line of the text file is read into the array in sequence, I need to be able to break each element of the ArrayList into the appropriate columns. The problem is with the description column as it contains multiple spaces. I can't work out how to break each string into the columns required
Please can anyone help?
Thank you very much in advance
Scott
|
|
|
|
|
If the format is as you described then using substring would probably be easiest.
<br />
string s = "12345678.abc 020 This is a description";<br />
string id = s.Substring(0, 12);<br />
string duration = s.Substring(13, 3);<br />
string description = s.Substring(17);<br />
You might want to put this in a catch block if there is a chance an line is incorrect. For more complex string manipulation you might want to look at regular expressions.
|
|
|
|
|
Thank you for replying, I see where you're going with this. It does however raise another question in as much as I then need to bind those strings into a datagrid under the same headings.
Any ideas how?
|
|
|
|
|
Create a class to store the id,duration and description. Then create an arraylist with instances of that class instead of strings.
|
|
|
|
|
Alternatively use Split - it has a parameter specifying the maximum number of strings in the array result.
|
|
|
|
|
I need to send an email message to receipients in my program. My problem is that I need it to send without an smtp relay. I found an example on this site on how to do it but it was written in C++ when I need it in C#. If someone can send me a link or code of how to do this, it would be greatly appreciated.
|
|
|
|
|
numbers1thru9 wrote: I need it to send without an smtp relay.
numbers1thru9 wrote: I found an example on this site
Please supply the link for that example. I have no idea how to send a SMTP message without a SMTP server.
led mike
|
|
|
|
|
As part of your mail methods you could make your own SMTP that can only send messages generated internally. Then it would seem as though its being sent without the use of an SMTP server.
|
|
|
|
|
eggsovereasy wrote: that can only send messages generated internally.
Send them where?
led mike
|
|
|
|
|
How do I capture packets sent to a specific application?
I want to know how can I place a kind of Hook that capture all packets sent to and from a specific application. I know that this can be done by pInvoke, but don’t know how. In the articles I only found how to capture mouse and keyboards events.
Another thing that I would like to know is how can I change the title of a specific win32 application running (that could b done by pInvoke too…)
|
|
|
|
|
Hi
There is a good article title Packet Capture and Analayzer[^] on how to capture packets using C#. Check that out...
You can use SetWindowText(...) Api function for setting up window's title.
|
|
|
|
|
I am writing ImageViewer application which is suppose to display high resolution images with zoomIn, ZoomOut. If I use Bicubic interpolation mode, I get high qulaity image covering most of details but speed is unaccepatable.
I looked at Netvue viewer(http://www.accusoft.com product). It displays blur image initially, smoothes it slowly and finally sharpen it, All phases are clearly visible. While my application applies scaling and hangs for a while(1.75-2Second) and displays image instanteniously.
Though i know Geometric transformations, I am novice to image processing and Siganl processing which most of articles talk about(Kernels, Gaussianl filter, box filter, mitchell filter etc...)
Any help on Progressive rendering and what filters would be useful would be appreciated.
Thanks
Regards,
MaulikCE
|
|
|
|
|
Display the image without using any interpolation - this should be fairly fast. Start a background thread rendering the image to an in memory bitmap in the intended target size using interpolation. When it completes, render this menory bitmap to the screen instead of the "non-interpolated" image.
|
|
|
|
|
It means image just changes twice, instantaneously.I would like to show image changing process.
Regards,
MaulikCE
|
|
|
|
|
I want to connect my computer to all workstations in our domain to get specifications of each machine. How can to connect to remote registry?
DoobiDoo
|
|
|
|
|
Hi all,
Im baffled by some code Ive written and need some help.
I have a simple class which holds a property:
<br />
public class Person<br />
{<br />
private string myName = string.Empty;<br />
<br />
public string MyName<br />
{<br />
get { return myName; }<br />
set { myName = value; }<br />
}<br />
<br />
public Person(string name)<br />
{<br />
myName = name;<br />
}<br />
<br />
}<br />
And I have another class, which is pretty self explanatry:
<br />
public class Depoll<br />
{<br />
public static void NewName(Person obj, string newName)<br />
{<br />
obj.MyName = newName;<br />
}<br />
}<br />
And finally, here are my tests:
<br />
[Test]<br />
public void TestChangeName()<br />
{<br />
Person me = new Person("Andy");<br />
Depoll.NewName(me, "Bill");<br />
Assert.AreEqual("Bill", me.MyName);<br />
}<br />
I dont understand why my test passes.
When I provide the Depoll.NewName function with my object, I assume that Im passing an instance. Therefore, any change to that object, will not affect the original, unless the Depoll.NewName returns it.
The Depoll.NewName function doesnt return the object once its been changed, therefore my original object should still have a name property of "Andy".
Can anyone help explain this?
Regards
Andy
|
|
|
|
|
andym.knight wrote: Can anyone help explain this?
Yes, you are passing a reference to your Person object to the static NewName method - not a copy of it, which means any changes to the Person within the method are reflected outside themethod.
|
|
|
|
|
Ahaa yes, thankyou.
So the question is, how do I make a copy of it.
Because Person 2ndPerson = 1stPerson; doesnt work either.
|
|
|
|
|
Andym.Knight wrote: Because Person 2ndPerson = 1stPerson; doesnt work either.
No, because once again you are just assigning a reference.
You may like to look at the IClonable interface and therefore the Clone method if you really do want a copy.
|
|
|
|