|
You might want to store the cell phone numbers of your students in the db and the incoming message would just be RESULTS. They should not send their student ID. You want to prevents Student A from requesting results for Student B.
|
|
|
|
|
Come on! You know security is the ultimate afterthought.
|
|
|
|
|
David Mujica wrote: You might want to
I'm not gonna build it But good point
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Eddy Vluggen wrote: what is your question?
Can't you tell from the subject line?
|
|
|
|
|
TL;DR
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
I'm writing a suite of software of which one of the programs is client that connects to a server; the client performs actions of behalf of request from the server with both the client and server being windows services.
For the server I need it to store data such as user names, password (actually hashes of passwords), permission settings, etc. I don't want the information stored on our SQL server because other employees have access to it and there is a risk of information being changed, deleted, and it won't be secure for this purpose. I also don't want the data stored on the server is a file (such as a .DAT file) because again other employees have access to the server and there are the same concerns as with the SQL server.
I was trying to find a way to save information internally within the program. I've worked with embedded resources, but only to the extent of extracting an embedded Word template and saving it to folder. I'm assuming there would be a way I could extract some sort of compressed XML file, change the data I need to, and then re-embedding it using a MemoryStream so the file is never written to the HDD. Would this be a way to go? Any body know any good articles explaining the process of extracting and embedding file, changing it, and then re-embedding it?
The company is a small company and over the course of a day I'm estimating that the server service would have to do the extract/re-embedding maybe 20 times so I don't see it being very heavy on resources. However I'm open to any other ideas. My only requirements is no SQL server or local file, secure, and the data is persisted across system restarts.
Thanks in advance for any help, ideas, or suggestions anybody can provide.
|
|
|
|
|
DisIsHoody wrote: My only requirements is no SQL server or local file, secure, and the data is persisted across system restarts. How do you expect the data to be persisted if it is not written to disk somewhere? The obvious answer to this is to use an encrypted file which the server holds open with exclusive use. On startup you read the file and decrypt it into memory. Then, every time some of the data changes you re-encrypt it and write it back to the disk file. The actual format of the file is not critical but it should be fairly simple to devise a format that makes it difficult for anyone to figure out the content even if they could crack the encryption.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
What I meant about not writting to the HDD was that it wouldn't be written to a separate file. I was hoping to file a way to write the necessary data to an embedded file. Then the data would persist it sul is technically stored on the HDD but within the assembly instead of a separate file.
|
|
|
|
|
DisIsHoody wrote: I was hoping to file a way to write the necessary data to an embedded file. But embedded where? Any file needs to exist on the disk so you have no choice but to write it there. If you are thinking of writing into the actual executable so the data is embedded there, then I do not think that is advisable unless you have a thorough understanding of the problems it may cause.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Yes...i was talking about embedding it in the actual program. The program is a window service so there won't be a program folder (at least it is my understanding that window services don't have an installation folder) where I can save the file. Plus since there other employees which have access to the server I'm concerned of someone either intentionally, or unintentionally, deleting the file, or affecting it other ways because they aren't aware what it is for. I've worked with embedding files within executables but I've only extracted them and saved them to the HDD. Do you know of any good articles that discuss the problems of changing files that are embedded within executables so I can weigh my options and decided best way to proceed?
|
|
|
|
|
DisIsHoody wrote: i was talking about embedding it in the actual program. Definitely a bad idea. There are lots of ways to protect the file by hiding it and using access control etc. If your organisation allows employees to go around randomly deleting files from your server then you have a management problem that needs to be addressed.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I agree that there is a huge management and security issues that my manager and I have been trying to change for years. However why is it such a bad idea to use embedded resources in such a way? I've used embedded resources for templates very successfully, just never had to change them once they were embedded during compilation.
|
|
|
|
|
It's a bad idea because you are talking about modifying the actual service program. Get that even slightly wrong and you could lose your service.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I assumed there was some built in functionality in the framework that would handle all the nuances. Similar to the way there its the built in functions to allow you to get a stream to an embedded resources, I figured there was one to allow you to write to a stream that would save it to the embebbed resource.
|
|
|
|
|
Not that I'm aware of, but the MSDN documentation will confirm that.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
DisIsHoody wrote: My only requirements is no SQL server or local file
That implies a non-local (aka 'remote') file. Shouldn't be a problem if you have a webserver there, simply access it over SSL.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Hello !
I have an application in vb.net 2010 /sql server 2008r2
i read data from sql server to a bindingsource ( salaryBindingSource). And now i have to get records one by one from bindingsource to a webpage ( this is not my webpage , but is my job to transfer data to this webpage).I'm thinking to make this process automatic from my aplication , because there are so many records and is difficult to enter manually .
the web page has 5 textbox , 1 combobox and 1 Button.
How can i fill textboxes and combobox with current record , press automatically the button , and continue with next records .....
i need an example how can i do this ?
Thank you
|
|
|
|
|
I think what you want to do is programatically "POST" data to that web-page.
I can't remember exatly how to do it, but search "create a post request programmatically" and I think you will find a solution.
Good luck.
|
|
|
|
|
|
Thank You !
But in this example , i don't understand how to identify the textbox names in webpage , and how can i put a specific data on a textbox , and after to press the button automatically ....
|
|
|
|
|
Are you binding the text boxes, and combo box with salaryBindingSource ? If you are, then the button should just navigate to the next record and the data bindings take care of filling in the controls. If you could supply a code snippet of what you have done, that could be helpful
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Thank You !
textboxes and comboboxes are on webpage not on my application.
on my application i have this code :
For each t in salaryBindingsource
i want to put t.value1 on first textbox of webpage
i want to put t.sum on second textbox of webpage
....
....
i want to press the button on webpage
Next
so , how can i do the instructions inside for cycle ?
Thank you.
|
|
|
|
|
alejx wrote: webpage not on my application
I may have misunderstood your problem. Is the webpage not something you created but you are trying to get your application to update the fields on the webpage?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
This is not my webpage , this is the webpage of a financial institution , and my job is to get data from my application , and to put manually on this website.But there are so many records , and i'm thinking to modify my application to put data automatically ?
how can i do this ?
Thank you !
|
|
|
|
|
Are you employed by this financial institution? And do they want to integrate your application and data with their site?
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|