0

I do not know much about encrypting. I am trying to use authenticate user information to save data to the binary file which is decrypted/encrypted using AES (commonly used encryption algorithm as of 2011).

How would I begin?

I have a piece of code which let me to authenticate the user:

using System; namespace Store_Passwords_and_Serial_Codes { class AuthenticateUser { private string userName, password; public AuthenticateUser(string userName, string password) { this.userName = userName; this.password = password; } public string UserName { get { return userName; } set { userName = value; } } public string Password { get { return password; } set { password = value; } } } } 

1 Answer 1

2

For details including sample source on how to encrypt/decrypt in C# via AES .NET already several things built-in see http://msdn.microsoft.com/de-de/library/system.security.cryptography.rijndael.aspx

IF you are more interested in how all the bits work algorithmically take a look at http://msdn.microsoft.com/en-us/magazine/cc164055.aspx

Other interesting links/source code:

Sign up to request clarification or add additional context in comments.

2 Comments

Ok. I do see the example. But I have never user 'using' as method. Is there anything from basics if this?
using helps with avoiding leaks... for some details see msdn.microsoft.com/en-us/library/yh598w02.aspx

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.