Tuesday, July 18, 2006

Many articles and approaches claims that it doesn't matter what is the application security level, or what is the security level of the environment the application is stored in (like working under SSL using https protocol etc...), you should always save all passwords and secret data encrypted. That because there is always a chance, even little one, that someone could steal your confidential data.

There are many hashing functions and alogorithms, several are MD5, SHA1 and more... but, these algorithms are too old (compare to our modern days), there generates 'only' a 128 bits value, so the space of posible resulting values is 2128 in size, which by creating a crack script, like the passcracking project the hash could be broken.

Because of these limitaions and cracking possibilities it is not recommended to use this type of hasing functions. Better solution you wiil see later... (hold on :) ).

One way Hash Functions

The following definitions are taken from the Bruce Schneier's Book: Applied Cryptography Second Edition:

A one-way hash function, H(M), operates on an arbitrary-length pre-image message, M. It returns a fixed-length hash value, h.

h = H(M), where h is of length m

Many functions can take an arbitrary-length input and return an output of fixed length, but one-way hash functions have additional characteristics that make them one-way [1065]:

Given M, it is easy to compute h.
Given h, it is hard to compute M such that H(M)= h.
Given M, it is hard to find another message, M’, such that H(M) = H(M’).

In some applications, one-wayness is insufficient; we need an additional requirement called collision-resistance.

It is hard to find two random messages, M and M’, such that H(M) = H(M’).

Now, by getting the main idea of the basic hashing algorithm by the Bruce Schneier's Book definitions, I want to show you better alternatives that comes to replace and enrich the old ones.

WHIRPOOL generates a 512 bits output, RIPEMD, uses 160, 128 or 320 bits output, but I want to focus in the SHA-2, function that generates 256, 512 bits ouputs, because there is available API in Microsoft.NET framework.

The main classes that implements this cryptografic algorithms are:

  • System.Security.Cryptography.SHA256Managed
  • System.Security.Cryptography.SHA384Managed
  • System.Security.Cryptography.SHA512Managed

Now to the implementations. The following code below shows you an example how to use this function in porpuse to encrypt a password or just confidential data that you want to store hashed:

byte[] data, encryptedBytes;
string hashedPassword = string.Empty;

data = Encoding.Default.GetBytes(plainPassword);
System.Security.Cryptography.SHA256 sha2 = new System.Security.Cryptography.SHA256Managed();
encryptedBytes = sha2.TransformFinalBlock(data, 0, data.Length);
foreach (byte b in sha2.Hash)
   hashedPassword += Convert.ToString(b, 16).ToUpper().PadLeft(2, '0');

sha2.Clear();
// hashedPassword holds the hashed string

This example above encript the plain pasword using SHA-2 algorithm.

The following example uses a salt which comes to help reduce the risk of dictionary attacks, the code appends random bytes (so-called "salt") to the original plain text before generating hashes. Please keep in mind that salt can only help against prebuilt dictionaries. If an intruder gets access to your system and uses a brute force attack, salt will not provide much value.

string hashedPassword = string.Empty;
//generate a random salt value by using the following code
byte[] salt = new byte[32];
System.Security.Cryptography.RNGCryptoServiceProvider.Create().GetBytes(salt);
byte[] salt = Encoding.Default.GetBytes(userName);

//Convert the plain string password into bytes
byte[] plainPasswordBytes = System.Text.UnicodeEncoding.Unicode.GetBytes(plainPassword);
// Append salt to password before hashing
byte[] combinedBytes = new byte[plainPasswordBytes.Length + salt.Length];
System.Buffer.BlockCopy(plainPasswordBytes, 0, combinedBytes, 0, plainPasswordBytes.Length);
System.Buffer.BlockCopy(salt, 0, combinedBytes, plainPasswordBytes.Length, salt.Length);

//Create hash for the password + salt
System.Security.Cryptography.HashAlgorithm hashAlgo = new System.Security.Cryptography.SHA256Managed();
byte[] hash = hashAlgo.ComputeHash(combinedBytes);

//Append the salt to the hash
byte[] hashPlusSalt = new byte[hash.Length + salt.Length];
System.Buffer.BlockCopy(hash, 0, hashPlusSalt, 0, hash.Length);
System.Buffer.BlockCopy(salt, 0, hashPlusSalt, hash.Length, salt.Length);

foreach (byte b in hashPlusSalt)
   hashedPassword += Convert.ToString(b, 16).ToUpper().PadLeft(2, '0');

// hashedPassword holds the hashed string

That's it, now use it properly and try to avoid as much as you can from brut attacking...

Posted by: Eran Nachum (c)
Post Date: 7/18/2006 9:23:57 AM (Jerusalem Standard Time, UTC+02:00)
Disclaimer | Comments [2] | Trackback   #
Related Posts:
SourceAnywhere Hosted - My Proof of Concept
Edit and encrypt Web.Config sections using C# 2.0
Is my IIS (5.0) dead?
Lets talk about Application Domains
Web Service Security Policy (WS-SecurityPolicy)

Tracked by:
http://thejohnslater.com/pix/img/pages/17332733/buy-cialis-viagra-cialis-levitra... [Pingback]
http://plantmol.com/pages/14707789/what-happens-when-girls-eat-viagra.html [Pingback]
http://promocija.com.hr/promocija.com.hr/includes/js/pages/14513048/horse-and-wo... [Pingback]
http://legambitdufou.org/Library/pages/37473155/viagra-advertisement.html [Pingback]
http://slaterjohn.com/downloads/2col/18233239/homemade-party-favor-crafts-for-yo... [Pingback]
http://seo4u.at/images/pages/83633776/stevie-s-viagra-joke-and-cartoon-emporium.... [Pingback]
http://blog.netmedia.hr/wp-includes/js/pages/wp-includes/js/pages/37341665/viagr... [Pingback]
http://ipsilon.hr/ipsilon.hr/cms/4/lib/pages/84970105/girls-on-cialis.html [Pingback]
http://swellhead.net/05901265/viagra-effect-single-dose.html [Pingback]
http://islands-croatia.comislands-croatia.com/includes/js/pages/63572716/viagra-... [Pingback]
http://plantmol.com/pages/82925982/free-cialis-trial.html [Pingback]
http://jivest2006.com/pages/93572908/in-sales-uk-viagra.html [Pingback]
http://thejohnslater.com/pix/img/pages/37509227/typical-college-personal-spendin... [Pingback]
http://ziaeisoft.com/db/pages/48644468/cialis-discount-paypal-fastest-shipping.h... [Pingback]
http://vladan.strigo.net/wp-includes/js/pages/58644194/long-wat-2-go-video-by-ca... [Pingback]
http://realestate.hr/templates/css/pages/75693678/freedownload-englishmovies.htm... [Pingback]
http://thebix.com/includes/compat/pages/25836121/rezept-d-ohne-de-cialis-de-viag... [Pingback]
http://lecouac.org/ecrire/lang/pages/09297522/watch-a-women-live-on-webcam.html [Pingback]
http://swellhead.net/69823688/schwartz-co-manalapan-nj.html [Pingback]
http://temerav.com/images/menu/96564153/free-sample-of-cialis.html [Pingback]
http://ipsilon.hr/ipsilon.hr/cms/4/lib/pages/07961069/latina-porns.html [Pingback]
http://jivest2006.com/pages/71437517/viagra-and-cialis-sold-world-wide-on-line.h... [Pingback]
http://lecouac.org/ecrire/lang/pages/30607079/swinger-couple-uk.html [Pingback]
http://swellhead.net/87238781/male-depression-sri-viagra-libido.html [Pingback]
http://blog.netmedia.hr/wp-includes/js/pages/wp-includes/js/pages/37341665/buy-l... [Pingback]
http://islands-croatia.comislands-croatia.com/includes/js/pages/37939565/female-... [Pingback]
http://pspdesktops.com/fileupload/store/pages/99948707/compare-levetria-and-viag... [Pingback]
http://promocija.com.hr/promocija.com.hr/includes/js/pages/97941190/viagra-affil... [Pingback]
http://realestate.hr/templates/css/pages/61224707/index.html [Pingback]
http://thejohnslater.com/pix/img/pages/19727212/cheap-viagra-online.html [Pingback]
http://ncdtnanotechportal.info/generator/pages/13540573/aria-giovanni-riding-dil... [Pingback]
http://disabilitybooks.com/oi/pages/56803773/cialis-used-for.html [Pingback]
http://pddownloads.com/pages/77210925/best-cialis.html [Pingback]
http://promocija.com.hr/promocija.com.hr/includes/js/pages/59318547/between-diff... [Pingback]
http://pddownloads.com/pages/65899391/index.html [Pingback]
http://split-dalmatia.com/split-dalmatia.com/images/pages/91234049/cutting-ciali... [Pingback]
http://hrvatska.biz/wp-includes/js/pages/18659909/preteen-voyarism.html [Pingback]
http://slaterjohn.com/downloads/2col/88681927/joanna-soppick.html [Pingback]
http://tubepornoss.com [Pingback]
http://realvideopornoo.com [Pingback]
http://yesihavemoneyy.com [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/paxil/index.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/soma/index.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/lipitor/index.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/cialis/index.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/coumadin/index.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/celexa/index.html [Pingback]
http://modena.intergate.ca/arezzojewelry/ultram.html [Pingback]
http://modena.intergate.ca/arezzojewelry/claritin.html [Pingback]
http://modena.intergate.ca/arezzojewelry/soma.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/melatonin/index.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/prilosec/index.html [Pingback]
http://modena.intergate.ca/arezzojewelry/melatonin.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/lexapro/index.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/prozac/index.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/claritin/index.html [Pingback]
http://modena.intergate.ca/arezzojewelry/cymbalta.html [Pingback]
http://modena.intergate.ca/arezzojewelry/rainbow-brite.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/celebrex/index.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/accutane/index.html [Pingback]
http://modena.intergate.ca/arezzojewelry/prozac.html [Pingback]
http://modena.intergate.ca/arezzojewelry/cialis.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/rainbow-brite/index.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/wellbutrin/index.html [Pingback]
http://modena.intergate.ca/arezzojewelry/celebrex.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/cymbalta/index.html [Pingback]
http://modena.intergate.ca/arezzojewelry/coumadin.html [Pingback]
http://modena.intergate.ca/arezzojewelry/lipitor.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/ultram/index.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/nexium/index.html [Pingback]
http://modena.intergate.ca/arezzojewelry/wellbutrin.html [Pingback]
http://modena.intergate.ca/arezzojewelry/lexapro.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/hoodia/index.html [Pingback]
http://modena.intergate.ca/arezzojewelry/synthroid.html [Pingback]
http://blastpr.com/blog/wp-includes/js/pages/synthroid/index.html [Pingback]
http://modena.intergate.ca/arezzojewelry/paxil.html [Pingback]
http://morningside.edu/mics/_notes/pages/accutane/index.html [Pingback]
http://blastpr.com/wiki/js/pages/wellbutrin/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/cialis/index.html [Pingback]
http://blastpr.com/wiki/js/pages/claritin/index.html [Pingback]
http://blastpr.com/wiki/js/pages/nexium/index.html [Pingback]
http://blastpr.com/wiki/js/pages/ultram/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/viagra/index.html [Pingback]
http://blastpr.com/wiki/js/pages/cialis/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/tramadol/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/lexapro/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/synthroid/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/rainbow-brite/index.html [Pingback]
http://blastpr.com/wiki/js/pages/lexapro/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/nexium/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/claritin/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/celebrex/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/melatonin/index.html [Pingback]
http://blastpr.com/wiki/js/pages/coumadin/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/coumadin/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/hoodia/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/effexor/index.html [Pingback]
http://blastpr.com/wiki/js/pages/prilosec/index.html [Pingback]
http://blastpr.com/wiki/js/pages/celexa/index.html [Pingback]
http://blastpr.com/wiki/js/pages/effexor/index.html [Pingback]
http://blastpr.com/wiki/js/pages/hoodia/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/wellbutrin/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/clomid/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/celexa/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/soma/index.html [Pingback]
http://blastpr.com/wiki/js/pages/zoloft/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/cymbalta/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/prozac/index.html [Pingback]
http://blastpr.com/wiki/js/pages/rainbow-brite/index.html [Pingback]
http://blastpr.com/wiki/js/pages/synthroid/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/paxil/index.html [Pingback]
http://discussgod.com/cpstyles/docs/62161481/index.html [Pingback]
http://ipsilon.hr/ipsilon.hr/cms/4/lib/docs/55227677/index.html [Pingback]
http://hrvatska.biz/wp-includes/js/docs/80692203/index.html [Pingback]
http://martinrozon.com/images/photos/docs/43274485/index.html [Pingback]
http://vladan.strigo.net/wp-includes/js/docs/25746442/index.html [Pingback]
http://thebix.com/includes/compat/docs/44694113/index.html [Pingback]
http://temerav.com/images/menu/05559064/index.html [Pingback]
http://coolioness.com/attachments/docs/83777724/index.html [Pingback]
http://promocija.com.hr/promocija.com.hr/includes/js/docs/70471394/index.html [Pingback]
http://ncdtnanotechportal.info/generator/docs/13227634/index.html [Pingback]
http://split-dalmatia.com/split-dalmatia.com/images/docs/34320152/index.html [Pingback]
http://plantmol.com/docs/24471383/index.html [Pingback]
http://realestate.hr/templates/css/docs/71546796/index.html [Pingback]
http://discussgod.com/cpstyles/docs/43932298/index.html [Pingback]
http://seo4u.at/images/docs/76783685/index.html [Pingback]
http://pddownloads.com/docs/21991908/index.html [Pingback]
http://discussgod.com/cpstyles/docs/25383456/index.html [Pingback]
http://promocija.com.hr/promocija.com.hr/includes/js/docs/37348396/index.html [Pingback]
http://witze-humor.de/templates/images/docs/83157240/index.html [Pingback]
http://add2rss.com/img/design/docs/90861918/index.html [Pingback]
http://allfreefilms.com/wp-includes/js/46226552/index.html [Pingback]
http://thebix.com/includes/compat/docs/29852280/index.html [Pingback]
http://swellhead.netswellhead.net/docs/84545083/index.html [Pingback]
http://martinrozon.com/images/photos/docs/56637999/index.html [Pingback]
http://swellhead.netswellhead.net/docs/79619129/index.html [Pingback]
http://pspdesktops.com/fileupload/store/docs/33460308/index.html [Pingback]
http://islands-croatia.comislands-croatia.com/includes/js/docs/68291686/index.ht... [Pingback]
http://split-dalmatia.com/split-dalmatia.com/images/docs/73811526/index.html [Pingback]
http://add2rss.com/img/design/docs/73396176/index.html [Pingback]
http://vladan.strigo.net/wp-includes/js/docs/86309858/index.html [Pingback]
http://thejohnslater.com/pix/img/docs/56008043/index.html [Pingback]
http://split-dalmatia.com/split-dalmatia.com/images/docs/16705258/index.html [Pingback]
http://legambitdufou.org/Library/docs/28049195/index.html [Pingback]
http://thejohnslater.com/pix/img/docs/73486930/index.html [Pingback]
http://islands-croatia.comislands-croatia.com/includes/js/docs/82710340/index.ht... [Pingback]
http://allfreefilms.com/wp-includes/js/27702077/index.html [Pingback]
http://legambitdufou.org/Library/docs/38152786/index.html [Pingback]
http://pddownloads.com/docs/66275653/index.html [Pingback]
http://vladan.strigo.net/wp-includes/js/docs/09763218/index.html [Pingback]
http://plantmol.com/docs/80639343/index.html [Pingback]
http://lecouac.org/ecrire/lang/docs/30125734/index.html [Pingback]
http://entartistes.ca/images/images/docs/81367526/index.html [Pingback]
http://thebix.com/includes/compat/docs/51589391/index.html [Pingback]
http://easytravelcanada.info/js/pages/10/synthroid/ [Pingback]
http://easytravelcanada.info/js/pages/1/celebrex/ [Pingback]
http://easytravelcanada.info/js/pages/11/ultram/ [Pingback]
http://sevainc.com/bad_denise/img/6/lipitor/ [Pingback]
http://adventure-traveling.com/images/img/cialis/ [Pingback]
http://sevainc.com/bad_denise/img/7/melatonin/ [Pingback]
http://sevainc.com/bad_denise/img/11/tramadol/ [Pingback]
http://sevainc.com/bad_denise/img/3/clomid/ [Pingback]
http://easytravelcanada.info/js/pages/6/lexapro/ [Pingback]
http://easytravelcanada.info/js/pages/3/clomid/ [Pingback]
http://easytravelcanada.info/js/pages/7/nexium/ [Pingback]
http://sevainc.com/bad_denise/img/12/wellbutrin/ [Pingback]
http://jemnemelodierecords.sk/img/viagra/ [Pingback]
http://sevainc.com/bad_denise/img/2/celexa/ [Pingback]
http://easytravelcanada.info/js/pages/3/claritin/ [Pingback]
http://inatelevizia.sk/ad/img/cialis/ [Pingback]
http://easytravelcanada.info/js/pages/10/soma/ [Pingback]
http://sevainc.com/bad_denise/img/12/zoloft/ [Pingback]
http://easytravelcanada.info/js/pages/9/prozac/ [Pingback]
http://easymexico.info/images/img/viagra/ [Pingback]
http://sevainc.com/bad_denise/img/7/nexium/ [Pingback]
http://sevainc.com/bad_denise/img/5/effexor/ [Pingback]
http://easytravelcanada.info/js/pages/8/paxil/ [Pingback]
http://sevainc.com/bad_denise/img/12/viagra/ [Pingback]
http://birds.sk/img/cialis/ [Pingback]
http://easytravelcanada.info/js/pages/4/coumadin/ [Pingback]
http://easytravelcanada.info/js/pages/5/effexor/ [Pingback]
http://easytravelcanada.info/js/pages/5/hoodia/ [Pingback]
http://easytravelcanada.info/js/pages/7/melatonin/ [Pingback]
http://sevainc.com/bad_denise/img/1/celebrex/ [Pingback]
abaffy.org/la/img/cialis/ [Pingback]
http://abaffydesign.com/la/img/viagra/ [Pingback]
http://easytravelcanada.info/js/pages/1/accutane/ [Pingback]
http://easytravelcanada.info/js/pages/12/viagra/ [Pingback]
http://easytravelcanada.info/js/pages/6/lipitor/ [Pingback]
http://abaffy.net/i/img/viagra/ [Pingback]
http://cidesi.com/images/metro/metro2/pages/32162341/dress-up-online-games-for-l... [Pingback]
http://cidesi.com/images/metro/metro2/pages/99493954/sexual-world-records.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/99493954/free-little-amateur-thumbs.... [Pingback]
http://odin.net/images/pages/52807681/hot-girls-squeeze-boobs.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/99493954/nude-fortysomethings.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/32162341/free-trial-xxx-incest-site.... [Pingback]
http://cidesi.com/images/metro/metro2/pages/99493954/kid-sex.html [Pingback]
http://odin.net/images/pages/35694472/anglina-jolie-nude.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/99493954/nauty-celebritys-having-sex... [Pingback]
http://gatewayplayhouse.com/photos/cai/pages/35807953/milking-tits-escorts.html [Pingback]
http://odin.net/images/pages/52807681/neosporin-for-anal-fissures.html [Pingback]
http://odin.net/images/pages/35694472/sexy-pinup-girls.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/99493954/erotic-comic-archives.html [Pingback]
http://odin.net/images/pages/35694472/study-on-penis-size.html [Pingback]
http://gatewayplayhouse.com/photos/cai/pages/53348735/adult-bib.html [Pingback]
http://odin.net/images/pages/35694472/index.html [Pingback]
http://odin.net/images/pages/35694472/sexy-native-american-costumes.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/99493954/asian-climate.html [Pingback]
http://odin.net/images/pages/52807681/index.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/32162341/hentai-spider-man.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/32162341/i-need-free-party-ideas-for... [Pingback]
http://cidesi.com/images/metro/metro2/pages/32162341/gay-baseball-player.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/99493954/view-free-sex-scenes.html [Pingback]
http://odin.net/images/pages/52807681/britney-no-panties-pics.html [Pingback]
http://odin.net/images/pages/52807681/erotic-slavery-stories.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/99493954/erotic-literature-for-women... [Pingback]
http://cidesi.com/images/metro/metro2/pages/32162341/old-film-girl-in-love-with-... [Pingback]
http://gatewayplayhouse.com/photos/cai/pages/53348735/adult-free-preview.html [Pingback]
http://gatewayplayhouse.com/photos/cai/pages/35807953/underwater-girl-nude.html [Pingback]
http://odin.net/images/pages/35694472/sexy-happy-birthday-girls.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/32162341/straight-guys-fuck-gays-for... [Pingback]
http://gatewayplayhouse.com/photos/cai/pages/53348735/the-internet-is-for-porn.h... [Pingback]
http://odin.net/images/pages/35694472/stories-housewives-seducing-husbands-frien... [Pingback]
http://gatewayplayhouse.com/photos/cai/pages/53348735/erotic-pictures-of-oral-se... [Pingback]
http://cidesi.com/images/metro/metro2/pages/32162341/sex-toys-oregon.html [Pingback]
http://odin.net/images/pages/35694472/cartoon-penis.html [Pingback]
http://gatewayplayhouse.com/photos/cai/pages/53348735/virgin-vagina-pic.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/99493954/young-girls-sex-video.html [Pingback]
http://odin.net/images/pages/35694472/time-square-webcam.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/99493954/oops-babes.html [Pingback]
http://odin.net/images/pages/52807681/rainbow-coalition-gay.html [Pingback]
http://odin.net/images/pages/52807681/britney-sex-tape-just-a-rumor.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/99493954/sexual-protective-strategie... [Pingback]
http://cidesi.com/images/metro/metro2/pages/32162341/sparkle-sweater-girls.html [Pingback]
http://odin.net/images/pages/35694472/sexy-female-escorts-in-delhi.html [Pingback]
http://cidesi.com/images/metro/metro2/pages/32162341/blonde-porn-star.html [Pingback]
http://odin.net/images/pages/35694472/free-amauter-porn.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/55461119/beautiful-nude-women-movie... [Pingback]
http://www.musicarrangers.com/photos/files/16094441/coco-nicole-austin-porn.html [Pingback]
http://morningside.edu/alumni/_notes/80752366/index.html [Pingback]
http://www.musicarrangers.com/photos/files/89806727/indian-softcore.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/55461119/baby-orangutans.html [Pingback]
http://morningside.edu/alumni/_notes/67435092/index.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/68316381/here-is-the-porn.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/68316381/adult-arcade-sex-games.htm... [Pingback]
http://www.musicarrangers.com/photos/files/89806727/double-anal-samples.html [Pingback]
http://www.musicarrangers.com/photos/files/05034060/playboy-girls-of-conference-... [Pingback]
http://www.med.univ-rennes1.fr/recup_article/55461119/taipei-webcam.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/55461119/girls-plus-size-jeans.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/55461119/hot-babes-for-psp.html [Pingback]
http://www.musicarrangers.com/photos/files/89806727/hairy-tits.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/46635660/torture-techniques-stories... [Pingback]
http://nuclearmonkeysoftware.com/tutorial/images/51453461/index.html [Pingback]
http://morningside.edu/alumni/_notes/56474425/index.html [Pingback]
http://www.musicarrangers.com/photos/files/89806727/scat-latex-escort.html [Pingback]
http://www.musicarrangers.com/photos/files/05034060/disney-kim-possible-nude.htm... [Pingback]
http://www.med.univ-rennes1.fr/recup_article/46635660/gay-golden-parnassus-resor... [Pingback]
http://nuclearmonkeysoftware.com/tutorial/images/28137384/index.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/68316381/hardcore-dvds.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/55461119/links-erotic-story.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/68316381/iran-photo-sex.html [Pingback]
http://www.musicarrangers.com/photos/files/89806727/monster-xxx.html [Pingback]
http://www.musicarrangers.com/photos/files/16094441/kurdish-sex-story.html [Pingback]
http://morningside.edu/alumni/_notes/39903568/index.html [Pingback]
http://www.musicarrangers.com/photos/files/05034060/baby-orangutans.html [Pingback]
http://www.musicarrangers.com/photos/files/16094441/adult-arcade-sex-games.html [Pingback]
http://nuclearmonkeysoftware.com/tutorial/images/18125727/index.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/68316381/forced-face-sitting-free-s... [Pingback]
http://www.musicarrangers.com/photos/files/89806727/horse-inserted-penis-testicl... [Pingback]
http://www.musicarrangers.com/photos/files/16094441/girls-having-sex.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/46635660/daisy-teen.html [Pingback]
http://nuclearmonkeysoftware.com/tutorial/images/70557071/index.html [Pingback]
http://nuclearmonkeysoftware.com/tutorial/images/06656861/index.html [Pingback]
http://www.musicarrangers.com/photos/files/89806727/skyler-stories.html [Pingback]
http://www.musicarrangers.com/photos/files/16094441/female-escorts-in-india.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/68316381/adult-free-site.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/46635660/double-anal-samples.html [Pingback]
http://morningside.edu/alumni/_notes/55232102/index.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/68316381/girls-having-sex.html [Pingback]
http://www.musicarrangers.com/photos/files/89806727/pics-of-ciara.html [Pingback]
http://www.musicarrangers.com/photos/files/89806727/black-tiny-teens-horny-for-a... [Pingback]
http://www.med.univ-rennes1.fr/recup_article/68316381/female-escorts-in-india.ht... [Pingback]
http://www.med.univ-rennes1.fr/recup_article/46635660/monster-xxx.html [Pingback]
http://www.musicarrangers.com/photos/files/89806727/make-your-own-teen-advice-co... [Pingback]
http://www.musicarrangers.com/photos/files/16094441/sex-free-mature.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/68316381/kurdish-sex-story.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/55461119/disney-kim-possible-nude.h... [Pingback]
http://www.musicarrangers.com/photos/files/16094441/flash-online-sex-games.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/68316381/free-chinese-girl-sex-vide... [Pingback]
http://nuclearmonkeysoftware.com/tutorial/images/55617287/index.html [Pingback]
http://www.musicarrangers.com/photos/files/05034060/jennifer-esposito-nude.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/46635660/xxx-preteens-under-12-yrs-... [Pingback]
http://www.musicarrangers.com/photos/files/16094441/pay-porn-site-review.html [Pingback]
http://www.musicarrangers.com/photos/files/05034060/how-to-increase-the-chances-... [Pingback]
http://www.musicarrangers.com/photos/files/16094441/teen-boy-fuck.html [Pingback]
http://www.musicarrangers.com/photos/files/16094441/mau-porn.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/55461119/uptown-girl.html [Pingback]
http://www.musicarrangers.com/photos/files/16094441/fuck-my-grandmon.html [Pingback]
http://www.musicarrangers.com/photos/files/05034060/links-erotic-story.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/55461119/tremor-sluts.html [Pingback]
http://www.musicarrangers.com/photos/files/16094441/iran-photo-sex.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/46635660/kelis-naked-pics.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/55461119/italian-baby-boy-names.htm... [Pingback]
http://nuclearmonkeysoftware.com/tutorial/images/99390540/index.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/68316381/coco-nicole-austin-porn.ht... [Pingback]
http://morningside.edu/alumni/_notes/00522919/index.html [Pingback]
http://www.musicarrangers.com/photos/files/05034060/nude-vacation-resorts.html [Pingback]
http://www.musicarrangers.com/photos/files/16094441/homeade-porn.html [Pingback]
http://www.musicarrangers.com/photos/files/16094441/seniors-sex-posts.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/55461119/indian-erotic.html [Pingback]
http://www.musicarrangers.com/photos/files/16094441/free-chinese-girl-sex-video.... [Pingback]
http://www.med.univ-rennes1.fr/recup_article/46635660/free-gay-full-length-movie... [Pingback]
http://www.musicarrangers.com/photos/files/05034060/pre-teen-girls-with-vibrator... [Pingback]
http://www.med.univ-rennes1.fr/recup_article/55461119/free-live-nude-video-chat.... [Pingback]
http://www.med.univ-rennes1.fr/recup_article/55461119/real-passed-out-girl.html [Pingback]
http://www.med.univ-rennes1.fr/recup_article/46635660/black-tiny-teens-horny-for... [Pingback]
http://www.med.univ-rennes1.fr/recup_article/55461119/diaper-cake-baby-shower.ht... [Pingback]
http://www.signalprocessingsociety.org/community/forum/buy-ambien-online.html [Pingback]
http://www.signalprocessingsociety.org/community/forum/buy-vicodin-online.html [Pingback]
http://www.signalprocessingsociety.org/community/forum/buy-cialis-online.html [Pingback]
http://www.signalprocessingsociety.org/community/forum/buy-hydrocodone-online.ht... [Pingback]
http://www.signalprocessingsociety.org/community/forum/buy-soma-online.html [Pingback]
http://www.signalprocessingsociety.org/community/forum/buy-viagra-online.html [Pingback]
http://www.signalprocessingsociety.org/community/forum/buy-phentermine-online.ht... [Pingback]

8/26/2006 9:59:27 PM (Jerusalem Standard Time, UTC+02:00)
Hi Eran,

When you are want to hash or encrypt data you need to worry about many issues, like:

+ Which algorithm to use?.
+ How do I secure the encryption key?.
+ How do I avoid of birthday attack in case of hashing? (answer: using salt)
+ How can I change my algorithms keys on production enviroment without changing my code?

As you can see there are many question you don't want to warry about as developer. In order to atchive that you need a framwork that let you to handle al those things.

This kind of framework let you as developer to write code like:
string encryptedContentsBase64 = Cryptographer.EncryptSymmetric("symmProvider", "SensitiveData");

// Decrypt the base64 encoded string
string readableString;
readableString = Cryptographer.DecryptSymmetric("symmProvider", encryptedContentsBase64);

The code do not care about the algorithm or the key it all configured base and you can be 100% sure about the strength of the encryption.

Let me to recomend on Enterprise Library's Cryptographic Appliction Block.

more details you can find on:
http://msdn.microsoft.com/library/en-us/dnpag2/html/EntLibJan2006_CryptoAppBlock.asp

Thanks,

Evyatar
Evyatar Ben-Shitrit
8/27/2006 1:14:13 PM (Jerusalem Standard Time, UTC+02:00)
Hey Evyatar! Firstable, thanks for your comment.
Second, I will investigate this subject more, using the refferer url that you had given me (I am sure it will innovate me something).

Now, about my post and example: There is an option to determine a key and salt that are "secret" just for me and by that no one could "break" the hashed value, unless of course he/she will hold my key and salt.
This is a general example with a random salt and key, in my application I had used my own key and salt.

Anyway, thanks about this comment, hope to hear from you again.
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Note: If the CAPTCHA image doesn't appear on the first time, just submit your comment without inserting this code
(press on 'Save Comment'), after postback this image code will be displayed.
Thanks.