I just finish exhibiting in ITEX 2008 at KLCC. Well its the first time i were participating in a such event. Meet many kind of people. The event was about invention, innovation and industrial design. We were provided with a booth to display our invention and bla3..it's not about winning for my but to gain some experience.
Just want to tell you all about when you are entering such a place. On day two of the exhibition, there was a person looking on my invention which is Smart Encryption System. After giving a brief about the system to that guy, then he starts asking about on my system. He was 'attacking' my system. I tried to answer but he refused to listen to my answers. He was mentioning about the key(encryption needs key to encrypt). For the sake of my studying institution name, i didn't fight words with him. Just telling him..betul2(right2)..then he go away without giving some idea or something. I 'fight' with him for almost an hour. He said why you used Java instead of C++.HELLO!!!...most of present future are in Java Mr Intelligent guy.
Next day i wander around the exhibition to look for that guy booth cause i know his name and where is his institution..Then i found out that he was researching about generating key for encryptions.heh..i am not an expert in Cryptography but i am not condemning others just that because i know cryptography. I am not saying that i didn't accept his comment on my system but the way he 'attack' my system...oh my god, just like he is a death god of encryption. There was also people who condemn my system but those people give some advice for me to improve the system. There was a guy who works for a company which involve in encryption which told me that my system was like this and that and finally he told me that i should do this and that..add this and that.
I was really mad at that Mr Intelligent-Key-Generation guy. grrrrrrrrrrrrrrrrrr..
Sunday, May 11, 2008
Thursday, May 8, 2008
Naruto 399 Manga
Hashirama used the name of Hokage before the village hidden in the mist begin.
Senju clan whose leader was Hashirama was respected and was afraid by every Shinobi.
When Senju moves, Uchiha moves.
Only Uchiha could deal with Senju.
If a country employed Senju, the opponent employed uchiha...
My name (Madara) became famous, while I opposed with Hashirama.
Sasuke: Did you deprived your brother's eyes to make your fame?
Madara: It wasn't for fame. My brother offered them by his choice.
Madara gripped his left fist by his right hand.
Madara: But Senju offered armistice.
Uchiha agreed with this.
More from him:
But I only opposed this armistice.
Sasuke: What was this hatered we had till now?
Why my brother sacrificed himself?
Madara: I thought Senju would wipe us out in future, but everyone wanted armistice, so I agreed with armistice according to clan's will as a leader. I had no choice.
Madara and Senju shake hands.
Then we reached an accord with the country of fire.
The county of fire and the village hidden in the leaves.
Every country emulated this one country and one village system.
The conflicts disappeared by this system.
Temporary peace has come.
But the village hidden in the leaves get into trouble by an incident.
Sasuke: ?
Madara: The position of the first Hokage.
The country of fire and people in the village chose Hashirama.
I afraid that Uchiha would be get away from dominion, so I decided to oppose Hashirama, but even a member of Uchiha didn't follow me.
I was criticized and said I am a greedy elder brother who robbed eyes from his younger brother.
There is no elder brother who is willing to heart his younger brother.
I've just wanted to protect Uchiha! I've left the village.
I became an avenger and challenged village.
I was defeated...I died there...They thought so.
Even Hashirama should have believed it.
The second Hokage who is younger brother of Hashirama assigned Uchiha to police force to show how much he believe Uchiha clan.
But actually, that was to observe Uchiha.
Some members of Uchiha have noticed this and tried to execute my will.
But it was too late...Uchiha has already become a dog (subordinate) of Senju.
And Uchiha has totally wiped out by an incident.
The attack by Nine-tail fox in 16 years before.
Danzo and two old advisers deduced that Uchiha did it.
Nine-Tail fox was a natural disaster and Uchiha wasn't included it, but they said we planed rebellion and so on.
After that, ANBU kept watching Uchiha and Uchiha was isolated from the village.
The third Hokage opposed this, but no one agreed with him.
And Uchiha clan planed coup d'etat to take over the village.
The man who stopped this was Itachi, your elder brother.
His hell started from that time.
Senju clan whose leader was Hashirama was respected and was afraid by every Shinobi.
When Senju moves, Uchiha moves.
Only Uchiha could deal with Senju.
If a country employed Senju, the opponent employed uchiha...
My name (Madara) became famous, while I opposed with Hashirama.
Sasuke: Did you deprived your brother's eyes to make your fame?
Madara: It wasn't for fame. My brother offered them by his choice.
Madara gripped his left fist by his right hand.
Madara: But Senju offered armistice.
Uchiha agreed with this.
More from him:
But I only opposed this armistice.
Sasuke: What was this hatered we had till now?
Why my brother sacrificed himself?
Madara: I thought Senju would wipe us out in future, but everyone wanted armistice, so I agreed with armistice according to clan's will as a leader. I had no choice.
Madara and Senju shake hands.
Then we reached an accord with the country of fire.
The county of fire and the village hidden in the leaves.
Every country emulated this one country and one village system.
The conflicts disappeared by this system.
Temporary peace has come.
But the village hidden in the leaves get into trouble by an incident.
Sasuke: ?
Madara: The position of the first Hokage.
The country of fire and people in the village chose Hashirama.
I afraid that Uchiha would be get away from dominion, so I decided to oppose Hashirama, but even a member of Uchiha didn't follow me.
I was criticized and said I am a greedy elder brother who robbed eyes from his younger brother.
There is no elder brother who is willing to heart his younger brother.
I've just wanted to protect Uchiha! I've left the village.
I became an avenger and challenged village.
I was defeated...I died there...They thought so.
Even Hashirama should have believed it.
The second Hokage who is younger brother of Hashirama assigned Uchiha to police force to show how much he believe Uchiha clan.
But actually, that was to observe Uchiha.
Some members of Uchiha have noticed this and tried to execute my will.
But it was too late...Uchiha has already become a dog (subordinate) of Senju.
And Uchiha has totally wiped out by an incident.
The attack by Nine-tail fox in 16 years before.
Danzo and two old advisers deduced that Uchiha did it.
Nine-Tail fox was a natural disaster and Uchiha wasn't included it, but they said we planed rebellion and so on.
After that, ANBU kept watching Uchiha and Uchiha was isolated from the village.
The third Hokage opposed this, but no one agreed with him.
And Uchiha clan planed coup d'etat to take over the village.
The man who stopped this was Itachi, your elder brother.
His hell started from that time.
Wednesday, May 7, 2008
Islam
I was boring this morning doing nothing. I came across an interesting article from Raja Petra. He is one the most prolific writers in Malaysia. Write's about politics in Malaysia and things that people do not know. His writing are such a beauty. Love his words. But right now he is in jail not for grabbing the backside of a cigar girl, not for raping an underage girl, not for murdering a Mongolian woman and also not for robbing the nation. It's about his writing which makes him vulnerable to be sent to jail. His duty as a Muslim to the community are judge as sedition by the Malaysian government.
Tuesday, May 6, 2008
AES : JAVA coding
Hello..it's been a long time since my last post. Actually i am a bit busy with my project going to ITEX exhibition this friday.
Now i am going to share with you all an example of AES encryption. This AES encryption used password from user as a key. Firstly, let me tell you more about AES.
Strictly speaking, AES is not precisely Rijndael (although in practice they are used interchangeably) as Rijndael supports a larger range of block and key sizes; AES has a fixed block size of 128 bits and a key size of 128, 192, or 256 bits, whereas Rijndael can be specified with key and block sizes in any multiple of 32 bits, with a minimum of 128 bits and a maximum of 256 bits.
Due to the fixed block size of 128 bits, AES operates on a 4×4 array of bytes, termed the state (versions of Rijndael with a larger block size have additional columns in the state). Most AES calculations are done in a special finite field. [source: wikipedia]
Thats all folks..Hope this would help. Just drop a comment if something is not right about the coding.
Now i am going to share with you all an example of AES encryption. This AES encryption used password from user as a key. Firstly, let me tell you more about AES.
Strictly speaking, AES is not precisely Rijndael (although in practice they are used interchangeably) as Rijndael supports a larger range of block and key sizes; AES has a fixed block size of 128 bits and a key size of 128, 192, or 256 bits, whereas Rijndael can be specified with key and block sizes in any multiple of 32 bits, with a minimum of 128 bits and a maximum of 256 bits.
Due to the fixed block size of 128 bits, AES operates on a 4×4 array of bytes, termed the state (versions of Rijndael with a larger block size have additional columns in the state). Most AES calculations are done in a special finite field. [source: wikipedia]
PKCS5S2ParametersGenerator generator = new PKCS5S2ParametersGenerator();
byte[] salt = {
(byte)0xc7, (byte)0x73, (byte)0x21, (byte)0x8c,
(byte)0x7e, (byte)0xc8, (byte)0xee, (byte)0x99,
(byte)0xc7, (byte)0x73, (byte)0x21, (byte)0x8c,
(byte)0x7e, (byte)0xc8, (byte)0xee, (byte)0x99
};
int count = 16;
IvParameterSpec iv = new IvParameterSpec(salt);
generator.init(pBytes, salt, count);
ParametersWithIV params = (ParametersWithIV)
generator.generateDerivedParameters(128, 128);
KeyParameter keyParam = (KeyParameter) params.getParameters();
SecretKeySpec key = new SecretKeySpec(keyParam.getKey(), "AES");
String password = "secretkey";
String PT = "Attack at dawn";
byte[] pBytes = password.getBytes();
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding","BC");
cipher.init(Cipher.ENCRYPT_MODE,key,iv);
byte[] cipherText = cipher.doFinal(PT.getBytes("ASCII"));
Base64 b64 = new Base64();
String b64ctxt = new String(Base64.encode(cipherText), "ASCII");
String b64key = new String(Base64.encode(key.getEncoded()), "ASCII");
System.out.println("Ciphertext = " + b64ctxt);
System.out.println("B64 key = " + b64key);
byte[] newCtxt = Base64.decode(b64ctxt);
cipher.init(Cipher.DECRYPT_MODE, key,iv);
byte[] plainBytes = cipher.doFinal(newCtxt);
String newPlainText = new String(plainBytes, "ASCII");
System.out.println("Plaintext = [" + newPlainText + "]");
Thats all folks..Hope this would help. Just drop a comment if something is not right about the coding.
Thursday, May 1, 2008
Best joke in Britain
A Chinese walks into a bar in America late one night and he saw Steven Spielberg.
As he was a great fan of his movies, he rushes over to him, and asks for his autograph.
Instead, Spielberg gives him a slap and says, "You Chinese people bombed our Pearl Habour, get outta here."
The astonished Chinese man replied, "It was not the Chinese who bombed your PearlHarbour, it was the Japanese".
"Chinese, Japanese, Taiwanese, you're all the same," replied Spielberg.
In return, the Chinese gives Spielberg a slap and says, "You sank the Titanic, my forefathers were on that ship."
Shocked, Spielberg replies, "It was the iceberg that sank the ship, not me."
The Chinese replies, "Iceberg, Spielberg, Carlsberg, you're all the same."
p/s: This particular joke won an award for the best joke in a competition organized in Britain
As he was a great fan of his movies, he rushes over to him, and asks for his autograph.
Instead, Spielberg gives him a slap and says, "You Chinese people bombed our Pearl Habour, get outta here."
The astonished Chinese man replied, "It was not the Chinese who bombed your PearlHarbour, it was the Japanese".
"Chinese, Japanese, Taiwanese, you're all the same," replied Spielberg.
In return, the Chinese gives Spielberg a slap and says, "You sank the Titanic, my forefathers were on that ship."
Shocked, Spielberg replies, "It was the iceberg that sank the ship, not me."
The Chinese replies, "Iceberg, Spielberg, Carlsberg, you're all the same."
p/s: This particular joke won an award for the best joke in a competition organized in Britain
Subscribe to:
Posts (Atom)