DES : JAVA

Today i am gonna post about DES aka Data Encryption Standard. Actually it’s a little not-up-to-date if you are using this type of algorithm. But for education purpose it’s ok..hee..My final year project used this algorithm cause it’s the SUN JCE have it’s library built in it. First we need to know what is DES.

DES used 56 bits key and used 64 bit block size. I take my Cryptography subject this year so it’s really an advantage for me for my final year project which has been successfully done. DES considered not save anymore from attack because of the key length. They already develope a machine called COPACOBANA which used to key search for DES for 6.4 days.

The process are really complicated..trust me, i have don’t the calculation for DES during my Cryptography subject..hate math=p hehe..below is the coding that i used for DES. Actually it’s a Password Based Encryption or PBE for DES. It used Cipher Block Chaining mode and padding.

PBEKeySpec pbeKeySpec;
PBEParameterSpec pbeParamSpec;
SecretKeyFactory keyFac;

// Salt
byte[] salt = {
(byte)0xc7, (byte)0×73, (byte)0×21, (byte)0×8c,
(byte)0×7e, (byte)0xc8, (byte)0xee, (byte)0×99
};

// Iteration count
int count = 20;

// Create PBE parameter set
pbeParamSpec = new PBEParameterSpec(salt, count);

String pass = “my secret”;

try {

keyFac = SecretKeyFactory.getInstance(”PBEWithMD5AndDES”);
pbeKey = keyFac.generateSecret(pbeKeySpec);
Cipher pbeCipher;
pbeCipher = Cipher.getInstance(”PBEWithMD5AndDES/CBC/PKCS5Padding”);
pbeCipher.init(Cipher.ENCRYPT_MODE, pbeKey, pbeParamSpec);

}

Anyway hope that the code above helps you all.have a nice days..wished me luck for my Cisco Network Competition Skills tomorrow.buh bye..

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • YahooMyWeb
  • De.lirio.us
  • Facebook
  • StumbleUpon
  • del.icio.us
  • Digg
  • Technorati

Programming Magic

What you need to do is go to GOOGLE and type ‘flower’ for example and search.

Then go to the address bar and paste the code below.

javascript:R= 0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI= document.images; DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position= ‘absolute’ ; DIS.left=Math. sin(R*x1+ i*x2+x3)* x4+x5; DIS.top=Math. cos(R*y1+ i*y2+y3)* y4+y5}R++ }setInterval( ‘A()’,5); void(0)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • YahooMyWeb
  • De.lirio.us
  • Facebook
  • StumbleUpon
  • del.icio.us
  • Digg
  • Technorati

Naruto 396 Manga

kakashi: …. cold sweat
zetsu and tobi vanish
naruto: wait!
Kakashi: wait naruto
sakura: kakashi sensei!? you’re really sweating
kakashi (I can’t believe [it/he] really exists…we could be in serious trouble….)
Sai is the only one left behind.

Zetsu: is it fine to let them follow us?
it’s due to this bug…
Tobi: even if they come I won’t let them do anything
it’s a good chance to show them their own powerlessness
kiba: What the hell’s that?
naruto: a fire?
yamato: senpai, that’s…

hinata: black flames
kakashi: it’s probably itachi’s jutsu

yamato (why does he know?) this flame won’t vanish until it burns everything…what a terrible jutsu!
naruto: what are we going to do? Is Sasuke in there?
hinata:!? There’s no one there…
everyone !?
nobody is in the place where the two of them collapsed
Tobi: huh? no one’s here
Did you eat them?
Zetsu: c’mon! would I?
Zetsu: I’m sure Itachi was dead

Spoiler #2
The Konoha Team attempts to chase Tobi and Zetsu who disappears but are stopped by Kakashi
Naruto is about to snap asking why they were stopped. Hinata tries to calm Naruto down. Naruto sees Kakashi’s serious face and controls his anger.
After a while Yamato suggests to continue search Sasuke. They decide to split up into groups again and search. While searching, Sai asks Kakashi why he didn’t allow them to chase in persuit. Kakashi doesn’t answer.
Kiba senses Sasuke’s scent. Everyone gathers to find traces of a battle but find no figures likely to be Itachi or Sasuke. The scent has gone so they decide they cannot chase any longer. Naruto grinds his teeth and no one talks to him.

Sasuke wakes although he is dying. He looks around but can’t figure out where he is. Tobi and Zetsu return there. Sasuke asks who they are.
Tobi takes his mask off and says:
“Its not the first time…Isn’t it?”
(Writers Note: I’ll leave the face up to when the manga comes out)
Sasuke looks astonished:
“You, you are…”

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • YahooMyWeb
  • De.lirio.us
  • Facebook
  • StumbleUpon
  • del.icio.us
  • Digg
  • Technorati

Heroes Season 3

It’s been a long time since the writer’s made a strike which makes Heroes on halt. I still remember my friend who told me to watch this series, Khizer. Long time no see him. Well wish all the best for him.
Heroes is a serial saga about people all over the world discovering that they have superpowers and trying to deal with how this change affects their lives. It was one of the most watched shows on television in 2006. Can’t wait for this series. It will be aired on 1st September 9.oopm EST.

Heroes Season 3

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • YahooMyWeb
  • De.lirio.us
  • Facebook
  • StumbleUpon
  • del.icio.us
  • Digg
  • Technorati

Fitna Movie

Hello..i just heard the news and quickly post it here. Again the things is about provoking Muslims all around the world. Before this it’s about Prophet Muhammad saw. Now it’s about Al-Quran.

I am no religious extremism okay. As a muslim, we have the right to explained our religion. Don’t just when you see someone got death penalty in muslim country cause of wrong doing, you said Islam are really cruel…No..no.that’s not the point. You must know how do we judge. Please don’t make fool of our religion. English said, don’t judge a book by it’s cover.

Geert Wilders is the name of behind this movie. He is a politician, try to raise some vote i think.. Of cause all that he show in his short movie are totally wrong. That’s not like it. Why just we can leave happily together muslim & non-muslim. There is no force in accepting Islam.

Geert Wilders

Freedom?!..hee..why always this things comes along with freedom. If you say freedom, why burglar or murderer are wrong. The have the freedom to steal or kill right?!..wrong right..right wrong.. Freedom is not the best word to be used  against Islam.

Well i dunno what else to say. Please understand first making nonsense statement on Islam.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • YahooMyWeb
  • De.lirio.us
  • Facebook
  • StumbleUpon
  • del.icio.us
  • Digg
  • Technorati

Illusion - part 1

Happy weekend everyone. I just want to share with you all about this illusion but you must only see it once.hehe..

Olny srmat poelpe can raed this.

 I cdnuolt blveiee that I cluod aulaclty uesdnatnrd what I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn’t mttaer in what oredr the ltteers in a word are, the olny iprmoatnt tihng is that the first and last ltteer be in the rghit pclae. The rset can be a taotl mses and you can still raed it wouthit a porbelm. This is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the word as a wlohe. Amzanig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt! if you can raed this psas it on !!

..

More than likely you said, ‘A bird in the bush,’!
and. ……. if this IS what YOU said, then you failed to see that the word THE is repeated twice!

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • YahooMyWeb
  • De.lirio.us
  • Facebook
  • StumbleUpon
  • del.icio.us
  • Digg
  • Technorati

Chinese Proverb

Just want to share with you all on this beautiful proverb.Enjoy..

With money you can buy a HOUSE but not a HOME.

With money you can buy a CLOCK but not TIME.

With money you can buy a BED but not SLEEP.

With money you can buy a BOOK but not KNOWLEDGE.

With money you can see a DOCTOR but not a GOOD HEALTH.

With money you can buy GOOD POSITION but not RESPECT.

With money you can buy BLOOD but not LIFE.

With money you can buy SEX but not LOVE.

p/s: notice that love is in red color instead of blue cause love always mentioned in red or pink..hehe..dunno why but that the way it is right..

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • YahooMyWeb
  • De.lirio.us
  • Facebook
  • StumbleUpon
  • del.icio.us
  • Digg
  • Technorati

« Previous PageNext Page »

FireStats icon Powered by FireStats