Simple string/byte[] encryption and decryption using AES in C#

Paste these methods in your Utils class or other and use them as is to encrypt and decrypt your
strings or byte[]s.  The session key is derived from the password you supply.  This works on any machine with .Net 1.1+ so you can encrypt on one machine and decrypt on another as needed.  Only the same password must be used to decrypt:
 
        /// <summary>
        /// Use AES to encrypt data string. The output string is the encrypted bytes as a base64 string.
        /// The same password must be used to decrypt the string.
        /// </summary>
        /// <param name="data">Clear string to encrypt.</param>
        /// <param name="password">Password used to encrypt the string.</param>
        /// <returns>Encrypted result as Base64 string.</returns>
        public static string EncryptData(string data, string password)
        {
            if ( data == null )
                throw new ArgumentNullException("data");
            if ( password == null )
                throw new ArgumentNullException("password");
            byte[] encBytes = EncryptData(Encoding.UTF8.GetBytes(data), password, PaddingMode.ISO10126);
            return Convert.ToBase64String(encBytes);
        }
        /// <summary>
        /// Decrypt the data string to the original string.  The data must be the base64 string
        /// returned from the EncryptData method.
        /// </summary>
        /// <param name="data">Encrypted data generated from EncryptData method.</param>
        /// <param name="password">Password used to decrypt the string.</param>
        /// <returns>Decrypted string.</returns>
        public static string DecryptData(string data, string password)
        {
            if ( data == null )
                throw new ArgumentNullException("data");
            if ( password == null )
                throw new ArgumentNullException("password");
            byte[] encBytes = Convert.FromBase64String(data);
            byte[] decBytes = DecryptData(encBytes, password, PaddingMode.ISO10126);
            return Encoding.UTF8.GetString(decBytes);
        }
        public static byte[] EncryptData(byte[] data, string password, PaddingMode paddingMode)
        {
            if ( data == null || data.Length == 0 )
                throw new ArgumentNullException("data");
            if ( password == null )
                throw new ArgumentNullException("password");
            PasswordDeriveBytes pdb = new PasswordDeriveBytes(password, Encoding.UTF8.GetBytes("Salt"));
            RijndaelManaged rm = new RijndaelManaged();
            rm.Padding = paddingMode;
            ICryptoTransform encryptor = rm.CreateEncryptor(pdb.GetBytes(16), pdb.GetBytes(16));
            using ( MemoryStream msEncrypt = new MemoryStream() )
            using ( CryptoStream encStream = new CryptoStream(msEncrypt, encryptor, CryptoStreamMode.Write) )
            {
                encStream.Write(data, 0, data.Length);
                encStream.FlushFinalBlock();
                return msEncrypt.ToArray();
            }
        }
        public static byte[] DecryptData(byte[] data, string password, PaddingMode paddingMode)
        {
            if ( data == null || data.Length == 0 )
                throw new ArgumentNullException("data");
            if ( password == null )
                throw new ArgumentNullException("password");
            PasswordDeriveBytes pdb = new PasswordDeriveBytes(password, Encoding.UTF8.GetBytes("Salt"));
            RijndaelManaged rm = new RijndaelManaged();
            rm.Padding = paddingMode;
            ICryptoTransform decryptor = rm.CreateDecryptor(pdb.GetBytes(16), pdb.GetBytes(16));
            using ( MemoryStream msDecrypt = new MemoryStream(data) )
            using ( CryptoStream csDecrypt = new CryptoStream(msDecrypt, decryptor, CryptoStreamMode.Read) )
            {
                // Decrypted bytes will always be less then encrypted bytes, so len of encrypted data will be big enouph for buffer.
                byte[] fromEncrypt = new byte[data.Length];
                // Read as many bytes as possible.
                int read = csDecrypt.Read(fromEncrypt, 0, fromEncrypt.Length);
                if ( read < fromEncrypt.Length )
                {
                    // Return a byte array of proper size.
                    byte[] clearBytes = new byte[read];
                    Buffer.BlockCopy(fromEncrypt, 0, clearBytes, 0, read);
                    return clearBytes;
                }
                return fromEncrypt;
            }
        }
 
— William Stacey [MVP]
Advertisements
This entry was posted in Security. Bookmark the permalink.

18 Responses to Simple string/byte[] encryption and decryption using AES in C#

  1. Unknown says:

    http://www.batteryfast.co.uk/acer/travelmate-2420-series.htm Acer travelmate 2420 series Battery http://www.batteryfast.co.uk/acer/white-aspire-one-zg5.htm Acer white aspire one zg5 Battery http://www.batteryfast.co.uk/apple/17-inch-powerbook-g4.htm Apple 17 inch powerbook g4 Battery http://www.batteryfast.co.uk/apple/a1189.htm Apple a1189 Battery http://www.batteryfast.co.uk/asus/a2000.htm Asus a2000 Battery http://www.batteryfast.co.uk/asus/a2500h.htm Asus a2500h Battery http://www.batteryfast.co.uk/asus/a3000.htm Asus a3000 Battery http://www.batteryfast.co.uk/asus/a32-f5.htm Asus a32-f5 Battery http://www.batteryfast.co.uk/asus/a32-s5.htm Asus a32-s5 Battery http://www.batteryfast.co.uk/asus/a4.htm Asus a4 Battery http://www.batteryfast.co.uk/asus/a4000.htm Asus a4000 Battery http://www.batteryfast.co.uk/asus/a42-a3.htm Asus a42-a3 Battery http://www.batteryfast.co.uk/asus/a42-a4.htm Asus a42-a4 Battery http://www.batteryfast.co.uk/asus/a42-v6.htm Asus a42-v6 Battery http://www.batteryfast.co.uk/asus/a42-w1.htm Asus a42-w1 Battery http://www.batteryfast.co.uk/asus/f3.htm Asus f3 Battery http://www.batteryfast.co.uk laptop batteries http://www.batteryfast.co.uk/asus/f5.htm Asus f5 Battery http://www.batteryfast.co.uk/dell/latitude-c400.htm Dell latitude c400 Battery http://www.batteryfast.co.uk/dell/inspiron-b120.htm Dell inspiron b120 Battery http://www.batteryfast.co.uk/dell/inspiron-b130.htm Dell inspiron b130 Battery http://www.batteryfast.co.uk/dell/latitude-d610.htm Dell latitude d610 Battery http://www.batteryfast.co.uk/dell/rn873.htm Dell rn873 Battery http://www.batteryfast.co.uk/gateway/12msb.htm Gateway 12msb Battery http://www.batteryfast.co.uk/dell/vostro-1000.htm Dell vostro 1000 Battery http://www.batteryfast.co.uk/dell/xps-m1210.htm Dell xps m1210 Battery http://www.batteryfast.co.uk/gateway/8msb.htm Gateway 8msb Battery http://www.batteryfast.co.uk/gateway/8msbg.htm Gateway 8msbg Battery http://www.batteryfast.co.uk/compaq/pavilion-dv2000.htm Compaq pavilion dv2000 Battery http://www.batteryfast.co.uk/compaq/pavilion-dv6000.htm Compaq pavilion dv6000 Battery http://www.batteryfast.co.uk/compaq/v6000.htm Compaq v6000 Battery http://www.batteryfast.co.uk/dell/1501.htm Dell 1501 Battery http://www.batteryfast.co.uk/dell/inspiron-1300.htm Dell inspiron 1300 Battery http://www.batteryfast.co.uk/dell/e1505.htm Dell e1505 Battery http://www.batteryfast.co.uk/dell/gd761.htm Dell gd761 Battery http://www.batteryfast.co.uk/dell/gk479.htm Dell gk479 Battery http://www.batteryfast.co.uk/dell/inspiron-1525.htm Dell inspiron 1525 Battery http://www.batteryfast.co.uk/dell/inspiron-2000.htm Dell inspiron 2000 Battery http://www.batteryfast.co.uk/dell/inspiron-2100.htm Dell inspiron 2100 Battery http://www.batteryfast.co.uk/dell/inspiron-2200.htm Dell inspiron 2200 Battery http://www.batteryfast.co.uk/dell/inspiron-5100.htm Dell inspiron 5100 Battery http://www.batteryfast.co.uk/dell/inspiron-5160.htm Dell inspiron 5160 Battery http://www.batteryfast.co.uk/dell/d400.htm Dell d400 Battery http://www.batteryfast.co.uk/dell/d5318.htm Dell d5318 Battery http://www.batteryfast.co.uk/clevo/d400.htm Clevo d400 Battery

  2. Unknown says:

    http://www.batterylaptoppower.com/acer/aspire-one-zg5.htm Acer aspire one zg5 Battery http://www.batterylaptoppower.com/asus/a42-w3.htm Asus a42-w3 Battery http://www.batterylaptoppower.com/asus/a42-a4.htm Asus a42-a4 Battery http://www.batterylaptoppower.com/asus/a42-m6.htm Asus a42-m6 Battery http://www.batterylaptoppower.com/asus/a42-v6.htm Asus a42-v6 Battery http://www.batterylaptoppower.com/asus/f3.htm Asus f3 Battery http://www.batterylaptoppower.com/compaq/nc4200.htm Compaq nc4200 Battery http://www.batterylaptoppower.com/compaq/nc4400.htm Compaq nc4400 Battery http://www.batterylaptoppower.com/asus/u6v.htm Asus u6v Battery http://www.batterylaptoppower.com/asus/v6.htm Asus v6 Battery http://www.batterylaptoppower.com/asus/v6000.htm Asus v6000 Battery http://www.batterylaptoppower.com/compaq/nx1050.htm Compaq nx1050 Battery http://www.batterylaptoppower.com/dell/d400.htm Dell d400 Battery http://www.batterylaptoppower.com/compaq/tc4200.htm Compaq tc4200 Battery http://www.batterylaptoppower.com/acer/black-aspire-one-zg5.htm Acer black aspire one zg5 Battery http://www.batterylaptoppower.com/acer/as07b32.htm Acer as07b32 Battery http://www.batterylaptoppower.com/acer/as07b52.htm Acer as07b52 Battery http://www.batterylaptoppower.com/acer/as07b71.htm Acer as07b71 Battery http://www.batterylaptoppower.com/acer/as07b72.htm Acer as07b72 Battery http://www.batterylaptoppower.com/acer/blue-aspire-one-zg5.htm Acer blue aspire one zg5 Battery http://www.batterylaptoppower.com/apple/a1039.htm Apple a1039 Battery http://www.batterylaptoppower.com/apple/a1185.htm Apple a1185 Battery http://www.batterylaptoppower.com/apple/a1185-black.htm Apple a1185 black Battery http://www.batterylaptoppower.com/asus/a2500h.htm Asus a2500h Battery http://www.batterylaptoppower.com/asus/a4.htm Asus a4 Battery http://www.batterylaptoppower.com/asus/a42-a2.htm Asus a42-a2 Battery http://www.batterylaptoppower.com/compaq/tc4400.htm Compaq tc4400 Battery http://www.batterylaptoppower.com/compaq/nx5000.htm Compaq nx5000 Battery http://www.batterylaptoppower.com/compaq/nx9000.htm Compaq nx9000 Battery http://www.batterylaptoppower.com/compaq/nx9005.htm Compaq nx9005 Battery http://www.batterylaptoppower.com/compaq/nx9010.htm Compaq nx9010 Battery http://www.batterylaptoppower.com/asus/w3000.htm Asus w3000 Battery http://www.batterylaptoppower.com/asus/w3a.htm Asus w3a Battery http://www.batterylaptoppower.com/hp/HSTNN-DB20.htm Hp HSTNN-DB20 Battery http://www.batterylaptoppower.com/dell/inspiron-5100.htm Dell inspiron 5100 Battery http://www.batterylaptoppower.com/dell/inspiron-5150.htm Dell inspiron 5150 Battery http://www.batterylaptoppower.com/dell/inspiron-5160.htm Dell inspiron 5160 Battery http://www.batterylaptoppower.com/dell/inspiron-6000.htm Dell inspiron 6000 Battery http://www.batterylaptoppower.com/dell/inspiron-600m.htm Dell inspiron 600m Battery http://www.batterylaptoppower.com/dell/inspiron-630m.htm Dell inspiron 630m Battery http://www.batterylaptoppower.com/dell/inspiron-8600.htm Dell inspiron 8600 Battery http://www.batterylaptoppower.com/dell/inspiron-640m.htm Dell inspiron 640m Battery http://www.batterylaptoppower.com/dell/inspiron-1720.htm Dell inspiron 1720 Battery http://www.batterylaptoppower.com/dell/inspiron-2000.htm Dell inspiron 2000 Battery http://www.batterylaptoppower.com/dell/inspiron-2100.htm Dell inspiron 2100 Battery http://www.batterylaptoppower.com/dell/inspiron-2200.htm Dell inspiron 2200 Battery

  3. Unknown says:

    http://www.batterylaptoppower.com/acer/as07b31.htm Acer as07b31 Battery http://www.batterylaptoppower.com/acer/as07b41.htm Acer as07b41 Battery http://www.batterylaptoppower.com/acer/as07b42.htm Acer as07b42 Battery http://www.batterylaptoppower.com/acer/as07b51.htm Acer as07b51 Battery http://www.batterylaptoppower.com laptop battery http://www.batterylaptoppower.com laptop batteries http://www.batterylaptoppower.com/dell/ dell laptop battery http://www.batterylaptoppower.com/dell/inspiron-1520.htm Dell inspiron 1520 Battery http://www.batterylaptoppower.com/dell/inspiron-6400.htm Dell inspiron 6400 Battery http://www.batterylaptoppower.com/dell/ dell laptop batteries http://www.batterylaptoppower.com/hp/ hp laptop battery http://www.batterylaptoppower.com/hp/ hp laptop batteries http://www.batterylaptoppower.com/dell/ dell laptop battery http://www.batterylaptoppower.com/dell/ dell laptop batteries http://www.batterylaptoppower.com/acer/aspire-5520.htm Acer aspire 5520 Battery http://www.batterylaptoppower.com/acer/aspire-5920.htm Acer aspire 5920 Battery http://www.batterylaptoppower.com/acer/batbl50l6.htm Acer batbl50l6 Battery http://www.batterylaptoppower.com/sony/vgp-bps2.htm Sony vgp-bps2 Battery http://www.batterylaptoppower.com/sony/vgp-bps2a.htm Sony vgp-bps2a Battery http://www.batterylaptoppower.com/sony/vgp-bps2b.htm Sony vgp-bps2b Battery http://www.batterylaptoppower.com/sony/vgp-bps2c.htm Sony vgp-bps2c Battery http://www.batterylaptoppower.com/dell/6400.htm Dell 6400 Battery http://www.batterylaptoppower.com/dell/d620.htm Dell d620 Battery http://www.batterylaptoppower.com/dell/d630.htm Dell d630 Battery http://www.batterylaptoppower.com/dell/d820.htm Dell d820 Battery http://www.batterylaptoppower.com/dell/d830.htm Dell d830 Battery http://www.batterylaptoppower.com/dell/e1505.htm Dell e1505 Battery http://www.batterylaptoppower.com/dell/gd761.htm Dell gd761 Battery http://www.batterylaptoppower.com/dell/gk479.htm Dell gk479 Battery http://www.batterylaptoppower.com/dell/inspiron-1520.htm Dell inspiron 1520 Battery http://www.batterylaptoppower.com/dell/inspiron-6400.htm Dell inspiron 6400 Battery http://www.batterylaptoppower.com/acer/travelmate-4200-series.htm Acer travelmate 4200 series Battery http://www.batterylaptoppower.com/acer/travelmate-4203-series.htm Acer travelmate 4203 series Battery http://www.batterylaptoppower.com/acer/travelmate-4230-series.htm Acer travelmate 4230 series Battery http://www.batterylaptoppower.com/apple/a1185-white.htm Apple a1185 white Battery http://www.batterylaptoppower.com/asus/a32-f3.htm Asus a32-f3 Battery http://www.batterylaptoppower.com/gateway/btp-68b3.htm Gateway btp-68b3 Battery http://www.batterylaptoppower.com/gateway/squ-412.htm Gateway squ-412 Battery http://www.batterylaptoppower.com/dell/vostro-1000.htm Dell vostro 1000 Battery http://www.batterylaptoppower.com/dell/vostro-1500.htm Dell vostro 1500 Battery http://www.batterylaptoppower.com/dell/wr050.htm Dell wr050 Battery http://www.batterylaptoppower.com/dell/xps-m1210.htm Dell xps m1210 Battery http://www.batterylaptoppower.com/dell/xps-m1330.htm Dell xps m1330 Battery http://www.batterylaptoppower.com/dell/pu563.htm Dell pu563 Battery http://www.batterylaptoppower.com/hp/530.htm Hp 530 Battery http://www.batterylaptoppower.com/hp/dv2000.htm Hp dv2000 Battery

  4. hunzusi says:

    http://www.batteryfast.co.uk/laptop-ac-adapter/liteon/r3000.htm Liteon r3000 Adapterhttp://www.batteryfast.co.uk/laptop-ac-adapter/liteon/r3000-series.htm Liteon r3000 series Adapterhttp://www.batteryfast.co.uk/laptop-ac-adapter/liteon/satellite-1100.htm Liteon satellite 1100 Adapterhttp://www.batteryfast.co.uk/laptop-ac-adapter/liteon/travelmate-4200.htm Liteon travelmate 4200 Adapterhttp://www.batteryfast.co.uk/dell/inspiron-500m.htm Dell inspiron 500m Batteryhttp://www.batteryfast.co.uk/dell/inspiron-630m.htm Dell inspiron 630m Batteryhttp://www.batteryfast.co.uk/dell/inspiron-640m.htm Dell inspiron 640m Batteryhttp://www.batteryfast.co.uk/dell/inspiron-910.htm Dell inspiron 910 Batteryhttp://www.batteryfast.co.uk/dell/inspiron-9100.htm Dell inspiron 9100 Batteryhttp://www.batteryfast.co.uk/dell/inspiron-mini-9.htm Dell inspiron mini 9 Batteryhttp://www.batteryfast.co.uk/apple/a1008.htm Apple a1008 Batteryhttp://www.batteryfast.co.uk/apple/a1012.htm Apple a1012 Batteryhttp://www.batteryfast.co.uk/apple/a1175.htm Apple a1175 Batteryhttp://www.batteryfast.co.uk/hp/2133.htm Hp 2133 Batteryhttp://www.batteryfast.co.uk/hp/2230.htm Hp 2230 Batteryhttp://www.batteryfast.co.uk/ibm/thinkpad-t30.htm Ibm thinkpad t30 Batteryhttp://www.batteryfast.co.uk/ibm/thinkpad-t40.htm Ibm thinkpad t40 Batteryhttp://www.batteryfast.co.uk/ibm/thinkpad-t42.htm Ibm thinkpad t42 Batteryhttp://www.batteryfast.co.uk/ibm/thinkpad-t43.htm Ibm thinkpad t43 Batteryhttp://www.batteryfast.co.uk/ibm/thinkpad-t60.htm Ibm thinkpad t60 Batteryhttp://www.batteryfast.co.uk/ibm/thinkpad-x40.htm Ibm thinkpad x40 Batteryhttp://www.batteryfast.co.uk/toshiba/pa3537u-1bas.htm Toshiba pa3537u-1bas Batteryhttp://www.batteryfast.co.uk/toshiba/pa3593u-1bas.htm Toshiba pa3593u-1bas Batteryhttp://www.batteryfast.co.uk/toshiba/pa3594u-1brs.htm Toshiba pa3594u-1brs Batteryhttp://www.batteryfast.co.uk/toshiba/satellite-a100.htm Toshiba satellite a100 Batteryhttp://www.batteryfast.co.uk/toshiba/satellite-a105.htm Toshiba satellite a105 Battery http://www.batteryfast.co.uk/toshiba/satellite-a205.htm Toshiba satellite a205 Battery http://www.batteryfast.co.uk/toshiba/satellite-a55.htm Toshiba satellite a55 Battery http://www.batteryfast.co.uk/toshiba/satellite-a70.htm Toshiba satellite a70 Battery http://www.batteryfast.co.uk/toshiba/satellite-l10.htm Toshiba satellite l10 Battery http://www.batteryfast.co.uk/toshiba/satellite-l100.htm Toshiba satellite l100 Battery http://www.batteryfast.co.uk/toshiba/satellite-l15.htm Toshiba satellite l15 Battery http://www.batteryfast.co.uk/toshiba/satellite-m30.htm Toshiba satellite m30 Battery http://www.batteryfast.co.uk/toshiba/satellite-m40.htm Toshiba satellite m40 Battery http://www.batteryfast.co.uk/toshiba/satellite-m45.htm Toshiba satellite m45 Battery http://www.batteryfast.co.uk/toshiba/satellite-m55.htm Toshiba satellite m55 Battery

  5. hunzusi says:

    http://www.batteryfast.com/laptop-ac-adapter/dell/5150.htm Dell 5150 Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/5160.htm Dell 5160 Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/8000.htm Dell 8000 Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/9100-series.htm Dell 9100 series Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/9200-series.htm Dell 9200 series Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/9300.htm Dell 9300 Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/b120.htm Dell b120 Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/cpi.htm Dell cpi Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/d620.htm Dell d620 Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/d810.htm Dell d810 Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/d820.htm Dell d820 Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/inspiron-5150.htm Dell inspiron 5150 Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/inspiron-5160.htm Dell inspiron 5160 Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/kd476.htm Dell kd476 Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/latitude-d620.htm Dell latitude d620 Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/latitude-d630.htm Dell latitude d630 Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/latitude-d820.htm Dell latitude d820 Adapter http://www.batteryfast.com/laptop-ac-adapter/dell/xps-m170.htm Dell xps m170 Adapter http://www.batteryfast.com/laptop-ac-adapter/delta/a6.htm Delta a6 Adapter http://www.batteryfast.com/laptop-ac-adapter/delta/aspire-1680.htm Delta aspire 1680 Adapter http://www.batteryfast.com/laptop-ac-adapter/fujitsu/c1320.htm Fujitsu c1320 Adapter http://www.batteryfast.com/laptop-ac-adapter/hp/dv8000.htm Hp dv8000 Adapter http://www.batteryfast.com/laptop-ac-adapter/hp/nc6000.htm Hp nc6000 Adapter http://www.batteryfast.com/laptop-ac-adapter/hp/nc6100.htm Hp nc6100 Adapter http://www.batteryfast.com/laptop-ac-adapter/hp/nc6120.htm Hp nc6120 Adapter http://www.batteryfast.com/laptop-ac-adapter/hp/nc8000.htm Hp nc8000 Adapter http://www.batteryfast.com/laptop-ac-adapter/hp/nc8230.htm Hp nc8230 Adapter http://www.batteryfast.com/laptop-ac-adapter/hp/nc8430.htm Hp nc8430 Adapter http://www.batteryfast.com/laptop-ac-adapter/hp/nx9600.htm Hp nx9600 Adapter http://www.batteryfast.com/laptop-ac-adapter/hp/zt1000.htm Hp zt1000 Adapter http://www.batteryfast.com/laptop-ac-adapter/hp/zv5000.htm Hp zv5000 Adapter http://www.batteryfast.com/laptop-ac-adapter/ibm/r30-.htm Ibm r30 Adapter http://www.batteryfast.com/laptop-ac-adapter/ibm/t40.htm Ibm t40 Adapter http://www.batteryfast.com/laptop-ac-adapter/ibm/x60.htm Ibm x60 Adapter http://www.batteryfast.com/laptop-ac-adapter/liteon/1500.htm Liteon 1500 Adapter http://www.batteryfast.com/laptop-ac-adapter/liteon/1520.htm Liteon 1520 Adapter http://www.batteryfast.com/laptop-ac-adapter/liteon/1600.htm Liteon 1600 Adapter http://www.batteryfast.com/laptop-ac-adapter/liteon/1680.htm Liteon 1680 Adapter http://www.batteryfast.com/laptop-ac-adapter/liteon/2200.htm Liteon 2200 Adapter http://www.batteryfast.com/laptop-ac-adapter/liteon/5620.htm Liteon 5620 Adapter http://www.batteryfast.com/dell/ dell laptop battery http://www.batteryfast.com/dell/ dell laptop batteries http://www.batteryfast.com/hp/ hp laptop battery http://www.batteryfast.com/hp/ hp laptop batteries http://www.batteryfast.com/dell/ dell laptop battery

  6. Unknown says:

    http://www.batterylaptoppower.com/toshiba/ toshiba laptop batteries http://www.batterylaptoppower.com/laptop-ac-adapter/ laptop ac adapter http://www.batterylaptoppower.com/laptop-ac-adapter/ laptop ac adapters http://www.batterylaptoppower.com/camcorder-battery/ camcorder battery http://www.batterylaptoppower.com/camcorder-battery/ camcorder batteries http://www.batterylaptoppower.com/digital-camera-battery/ digital camera battery http://www.batterylaptoppower.com/digital-camera-battery/ digital camera batteries http://www.batterylaptoppower.com/laptop-ac-adapter/acer/1600.htm Acer 1600 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/acer/1680.htm Acer 1680 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/acer/5520.htm Acer 5520 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/acer/5920.htm Acer 5920 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/acer/5720.htm Acer 5720 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/acer/5100.htm Acer 5100 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/acer/aspire-5520.htm Acer aspire 5520 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/acer/aspire-5920.htm Acer aspire 5920 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/acer/as07b41.htm Acer as07b41 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/acer/travelmate-2000.htm Acer travelmate 2000 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/compaq/nc6000.htm Compaq nc6000 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/compaq/nc8000.htm Compaq nc8000 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/compaq/nx9100.htm Compaq nx9100 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/compaq/r3000.htm Compaq r3000 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/compaq/zt1000.htm Compaq zt1000 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/compaq/dv9000-series.htm Compaq dv9000 series Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/compaq/nx9000.htm Compaq nx9000 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/kd476.htm Dell kd476 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/1500.htm Dell 1500 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/1700.htm Dell 1700 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/d620.htm Dell d620 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/latitude-d620.htm Dell latitude d620 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/6400.htm Dell 6400 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/inspiron-6400.htm Dell inspiron 6400 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/d820.htm Dell d820 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/latitude-d820.htm Dell latitude d820 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/latitude-d630.htm Dell latitude d630 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/1150.htm Dell 1150 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/9300.htm Dell 9300 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/d810.htm Dell d810 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/1720.htm Dell 1720 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/inspiron-5150.htm Dell inspiron 5150 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/inspiron-5160.htm Dell inspiron 5160 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/5150.htm Dell 5150 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/5160.htm Dell 5160 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/xps-m170.htm Dell xps m170 Adapter http://www.batterylaptoppower.com/laptop-ac-adapter/dell/9100-series.htm Dell 9100 series Adapter

  7. Unknown says:

    http://www.batteryfast.co.uk/asus/a42-w3.htm Asus a42-w3 Battery http://www.batteryfast.co.uk/asus/w3000.htm Asus w3000 Battery http://www.batteryfast.co.uk/asus/a42-a3.htm Asus a42-a3 Battery http://www.batteryfast.co.uk/asus/a32-f3.htm Asus a32-f3 Battery http://www.batteryfast.co.uk/asus/f3.htm Asus f3 Battery http://www.batteryfast.co.uk/asus/a2500h.htm Asus a2500h Battery http://www.batteryfast.co.uk/compaq/presario-1200.htm Compaq presario 1200 Battery http://www.batteryfast.co.uk/compaq/presario-1600.htm Compaq presario 1600 Battery http://www.batteryfast.co.uk/compaq/presario-1800.htm Compaq presario 1800 Battery http://www.batteryfast.co.uk/samsung/nc10.htm Samsung nc10 Battery http://www.batteryfast.co.uk/compaq/nx9005.htm Compaq nx9005 Battery http://www.batteryfast.co.uk/compaq/tc4200.htm Compaq tc4200 Battery http://www.batteryfast.co.uk/compaq/tc4400.htm Compaq tc4400 Battery http://www.batteryfast.co.uk/compaq/nc4200.htm Compaq nc4200 Battery http://www.batteryfast.co.uk/dell/d400.htm Dell d400 Battery http://www.batteryfast.co.uk/dell/original-inspiron-1525.htm Dell original inspiron 1525 Battery http://www.batteryfast.co.uk/dell/inspiron-1525.htm Dell inspiron 1525 Battery http://www.batteryfast.co.uk/dell/inspiron-1526.htm Dell inspiron 1526 Battery http://www.batteryfast.co.uk/dell/rn873.htm Dell rn873 Battery http://www.batteryfast.co.uk/dell/inspiron-8000.htm Dell inspiron 8000 Battery http://www.batteryfast.co.uk/dell/1691p.htm Dell 1691p Battery http://www.batteryfast.co.uk/dell/latitude-c600.htm Dell latitude c600 Battery http://www.batteryfast.co.uk/dell/inspiron-4000.htm Dell inspiron 4000 Battery http://www.batteryfast.co.uk/dell/inspiron-1150.htm Dell inspiron 1150 Battery http://www.batteryfast.co.uk/dell/inspiron-5160.htm Dell inspiron 5160 Battery http://www.batteryfast.co.uk/dell/inspiron-1100-series.htm Dell inspiron 1100 series Battery http://www.batteryfast.co.uk/dell/inspiron-5150.htm Dell inspiron 5150 Battery http://www.batteryfast.co.uk/dell/inspiron-1200.htm Dell inspiron 1200 Battery http://www.batteryfast.co.uk/dell/inspiron-2200.htm Dell inspiron 2200 Battery http://www.batteryfast.co.uk/dell/inspiron-1000.htm Dell inspiron 1000 Battery http://www.batteryfast.co.uk/dell/inspiron-640m.htm Dell inspiron 640m Battery http://www.batteryfast.co.uk/dell/inspiron-630m.htm Dell inspiron 630m Battery http://www.batteryfast.co.uk/dell/e1405.htm Dell e1405 Battery http://www.batteryfast.co.uk/dell/xps-m140.htm Dell xps m140 Battery http://www.batteryfast.co.uk/dell/xps-m1330.htm Dell xps m1330 Battery

  8. Unknown says:

    http://www.batteryfast.com/asus/f3.htm Asus f3 Battery http://www.batteryfast.com/toshiba/pa3594u-1brs.htm Toshiba pa3594u-1brs Battery http://www.batteryfast.com/toshiba/pa3593u-1bas.htm Toshiba pa3593u-1bas Battery http://www.batteryfast.com/toshiba/pabas111.htm Toshiba pabas111 Battery http://www.batteryfast.com/dell/xps-m1530.htm Dell xps m1530 Battery http://www.batteryfast.com/hp/tx2000.htm Hp tx2000 Battery http://www.batteryfast.com/hp/pavilion-tx1000.htm Hp pavilion tx1000 Battery http://www.batteryfast.com/dell/xps-m1730.htm Dell xps m1730 Battery http://www.batteryfast.com/hp/pavilion-dv6.htm Hp pavilion dv6 Battery http://www.batteryfast.com/toshiba/pa3395u-1brs.htm Toshiba pa3395u-1brs Battery http://www.batteryfast.com/toshiba/pa3421u-1brs.htm Toshiba pa3421u-1brs Battery http://www.batteryfast.com/toshiba/pa3451u-1brs.htm Toshiba pa3451u-1brs Battery http://www.batteryfast.com/toshiba/pa3399u-1brs.htm Toshiba pa3399u-1brs Battery http://www.batteryfast.com/toshiba/pa3399u-2bas.htm Toshiba pa3399u-2bas Battery http://www.batteryfast.com/toshiba/satellite-a100.htm Toshiba satellite a100 Battery http://www.batteryfast.com/toshiba/satellite-m40.htm Toshiba satellite m40 Battery http://www.batteryfast.com/toshiba/satellite-m45.htm Toshiba satellite m45 Battery http://www.batteryfast.com/toshiba/satellite-m55.htm Toshiba satellite m55 Battery http://www.batteryfast.com/toshiba/pa3356u.htm Toshiba pa3356u Battery http://www.batteryfast.com/toshiba/pa3356u-1bas.htm Toshiba pa3356u-1bas Battery http://www.batteryfast.com/toshiba/pa3356u-1brs.htm Toshiba pa3356u-1brs Battery http://www.batteryfast.com/toshiba/pa3356u-2brs.htm Toshiba pa3356u-2brs Battery http://www.batteryfast.com/toshiba/pa3456u-1brs.htm Toshiba pa3456u-1brs Battery http://www.batteryfast.com/toshiba/portege-m500.htm Toshiba portege m500 Battery http://www.batteryfast.com/toshiba/pa3451u.htm Toshiba pa3451u Battery http://www.batteryfast.com/toshiba/pabas067.htm Toshiba pabas067 Battery http://www.batteryfast.com/toshiba/pa3465u-1brs.htm Toshiba pa3465u-1brs Battery http://www.batteryfast.com/toshiba/pa3534u-1brs.htm Toshiba pa3534u-1brs Battery http://www.batteryfast.com/toshiba/pa3533u-1bas.htm Toshiba pa3533u-1bas Battery http://www.batteryfast.com/toshiba/satellite-a205.htm Toshiba satellite a205 Battery http://www.batteryfast.com/toshiba/pa3534u-1bas.htm Toshiba pa3534u-1bas Battery http://www.batteryfast.com/uniwill/255-3s4400-g1l1.htm Uniwill 255-3s4400-g1l1 Battery http://www.batteryfast.com/uniwill/un255.htm Uniwill un255 Battery

  9. Unknown says:

    ダッチワイフ

    まつげエクステ

    アダルトグッズ

    英会話 教材

    競馬

    フラワーアレンジ

    ブリザーブドフラワー

    バラ

    供花

    誕生花

    誕生日プレゼント 花

    北欧家具

    エッセンシャルオイル

    ブライダルエステ 代官山

    大人のおもちゃ通販

    結婚式

    結婚式準備

    結婚式の髪型

    ウェディングドレス

    アダルト サンプル 動画

    アダルト
    ダウンロード

    熟女
    アダルト

    巨乳
    アダルト

    素人
    アダルト

    ニューハーフ
    アダルト

    FX ランキング

    FX 比較

    キャッシング 申込

    債務整理

  10. Unknown says:

    探偵 調査

    素行調査

    身辺調査

    妻浮気

    悩み相談

    探偵紹介

    探偵事務所

    行動調査

    追跡調査

    結婚式

    電話占い

    性生活

    オナホール

    TENGA

    バイブ

    コスチューム

    大人のおもちゃ

    アダルトグッズ

    アダルトグッズ

    アダルトグッズ

    オナホール

    エアコン 東京

    ガーデンファニチャー

    システムキッチン

    洗面化粧台

    洗面台

    オーガニックアロマ

    翻訳会社

    大人のおもちゃ

    アダルトショップ 

    エネマグラ

    オナホール 

    仮性包茎

    アナル

    電マ

  11. Unknown says:

    Hi,Do you need digital signages, advertising displays, digital sign, advertisement displays and advertising players? Please go Here:www.amberdigital.com.hk(Amberdigital).we have explored and developed the international market with professionalism. We have built a widespread marketing network, and set up a capable management team dedicated to provide beyond-expectation services to our customers.
    amberdigital Contact Us
    website:www.amberdigital.com.hk
    alibaba:amberdigital.en.alibaba.com[cibfihhghjdgdaj]

  12. Unknown says:

    compaq evo n110s battery
    compaq pp2101x battery
    compaq armada 110 battery
    compaq armada 110s battery

    compaq evo n150 battery
    compaq 244388-b25 battery
    compaq pp2110 battery
    compaq pp2111x battery
    dell inspiron 2000 battery
    dell inspiron 2100 battery
    dell inspiron 2800 battery
    dell latitude ls 400 battery
    dell inspiron 500m battery

    dell latitude d500 battery
    dell latitude d600 battery
    dell inspiron 510m battery
    dell inspiron 600m battery
    dell latitude d400 battery
    dell inspiron 8500 battery
    dell inspiron 8600 battery
    dell latitude d800 battery
    dell inspiron 5000 battery

    dell inspiron 5000e battery
    dell inspiron 2600 battery
    dell inspiron 2650 battery
    dell bat3151l8 battery
    dell 1691p battery

  13. Unknown says:

    wow gold!All wow gold US Server 24.99$/1000G on sell! Cheap wow gold,wow gold,wow gold,Buy Cheapest/Safe/Fast WoW US EU wow gold Power leveling wow gold from the time you wWorld of Warcraft gold ordered!

    wow power leveling wow power leveling power leveling wow power leveling wow powerleveling wow power levelingcheap wow power leveling wow power leveling buy wow power leveling wow power leveling buy power leveling wow power leveling cheap power leveling wow power leveling wow power leveling wow power leveling wow powerleveling wow power leveling power leveling wow power leveling wow powerleveling wow power leveling buy rolex cheap rolex wow gold wow gold wow gold wow gold -49774296023968

  14. David says:

    Needed something quick and easy – Nice job!

  15. poet_2001 says:

    Hi William.. that is good work.. but when I want to call AES form windows APIs as shown >>
     
    public abstract calss AES : Semmetrickeyalgorithm
     
    what should I know\\do to complete the operation.. can you show me an example to do that
     
    thanks

  16. W says:

    This works just fine in c# 2.0.  Thanks for the simple example!  I need to brush up on encryption in general, but this will start me off in a rush project!

  17. William says:

    Hi Ken.  Are you having a problem with this sample or one on MSDN.  IIRC, my sample worked good.  If your getting an error, I could debug it.  Thanks

  18. Unknown says:

    I assume this code runs somewhere?  With what version of .net?In .net 1.1, CryptoStream.Read(buffer, 0, length) thows an exception if length > length of the crypto stream (which is not testable before the read).Not only is the example on this in the MSDN library bad, it puts decryption in as part of an encryption method, so the size to read back is already known from what was encrypted.  Typical frustrating MS example!

Comments are closed.