I used to encrypt and store my applications (Web Forms – Windows Forms) user password in the database.
I usually during the creation of a new user, I get the user password as a plain text and I create a new hash value then I encrypt the concatenation of the password plain text and the hash value. I store both the encrypted password and the hash value in the database.
During the user login authentication process I get the supplied user password as plain text then I retrieve the stored hash and the encrypted password for that user from the database. I repeat the same encryption again which I used during the new user creation operation but with concatenation of the retrieved hash from the database and the supplied plain text password then I compare both the database retrieved encrypted password with new encrypted password. If they are matching the login validation passes otherwise it fails.
I used to use "FormsAuthentication.HashPasswordForStoringInConfigFile" in the namespace "System.Web.Security" to encrypt the passwords for both of my windows Forms and web forms applications. But now with the .Net framework 4.5 the following method:
"HashPasswordForStoringInConfigFile(Password as string, PasswordFormat as string) as string" is obsolete.
Please anyone have any idea what is the new alternative for this method?
does VS put some files in Bin, and other files elsewhere?
Yes. Take a look at the directory structure under your solution directory and you will see the other directories. You can also look through your project properties to see which part of the build uses which directories.
One of these days I'm going to think of a really clever signature.
You could change the output path by simply setting the output path attribute in the project's Build properties.
They could be put elsewhere so long as all the dependent dll's are also available in the same folder.
I am getting following error when I am trying to assign a null value or nuthing value to a variable of type Nullable(Of Decimal).
But for that variable I want to assign a decimal value or null value. The same kind of problem I faced with Nullable (of DateTime) too. It cant take a nothing assigned to it. If it cant take that value then why is it nullable(of Decimal) or Nullable (of DateTime) and System.Nullable(Of Integer) is also not taking null values (means nothing value in VB.Net).
Please help me in resolving this issue.
thanks in advance.
Below is my code: I tried by just putting variable=nothing also but didnt work.
OK. Thanks Dave. That clears it up. The text box values are not of consequence but if they are null it is a problem. Trying to add them to a listbox is rejecting null strings. Position in the list box is critical for each item added so a place holder needs to be added.
We have a new requirement that a daily file transfer of client data be encrypted with PGP. I would rather not rely on a blackbox solution, as I want to make sure that the file is not being secretly sent off somewhere.
Can anyone help me find .Net source code to do PGP encryption/decryption? C# or VB.net are both fine, I can work with either. I do not need -- and frankly, would rather avoid -- all of the other bells and whistles that have become common with PGP packages. All I need is file encryption and decryption using an public/private key that follows the PGP protocols.
i am working with C# application, which has some memory leak problem. When i checked with profiler, i saw private bytes are being increased continuously and after some times it is getting crashed. Can any one tell me what is "Private bytes" and what is the main reason of its increase in size without any request .
Without knowing anything at all about your application, this question is impossible to answer.
Is it a Windows Forms app, WPF, ASP.NET, Silverlight, ... What? What does the application do? What is it doing when this "leak" occurs? Is it idle? Is it doing something in the background? Is it using some 3rd party components? What's the error message, if any, when it crashes?
Where are you getting this statistic from? DO NOT USE TASK MANAGER!
I am using MSI to create setup. I already added prerequisite (.NET framwork 3.5) into MSI.
I have selected option i.e. Download prerequisite fromthe same location as my application
While installing setup on windows XP SP3 its showing error .NET framework is not installed on the machine. Setup is not installing .NET framework from MSI.
Even I added all framework files and folders into application folder and program files folder.
Is I am doing any wrong? can pls let me know the steps how can i used my prerequisite .NET framework 3.5 on windows XP SP3 even not framework is available.
I am using EF 1.0 trying to update a column called doc id which is nullable column, but the EF is updating the other column also along with this column. There is no other place that I am updating that column mistakenly.
Is there any way that I can avoid this kind of situation happening. Because it is happening only in Integration Env, but not in Dev. I dont know what to do now. Please help me.
I am using Visual Studio 2008 to develop web application in Windows XP Internet explorer-8. If i run first time i wont get any error. In 2nd time i will get Unable to start program http://localhost:1837/default.aspx after that every time it is coming like that. I am not able to get debug point. How to solve this issue.
I have an application that looks at the system time and records the datetime. We give out demos and license by time.
One customer claims to have blocked my application from seeing the time so it always runs. He wouldn't say how but just said he would "not let it look at the time." Before I dig into this has anyone heard of this or know how to do it? He's not really a hacker but is tech savy enough to find things other people have done.
Last Visit: 31-Dec-99 18:00 Last Update: 3-Sep-15 10:41