HelpNeeder
HelpNeeder

Reputation: 6490

Encrypting data using AES

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;
            }
        }
    }
}

Upvotes: 0

Views: 672

Answers (1)

Yahia
Yahia

Reputation: 70379

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:

Upvotes: 2

Related Questions