Day before yesterday I read a news about Facebook being sued by Yahoo for their social networking patents.. Every day I read a news about something is patented by some company, now I don't know about today's patent system, I mean how they approve them but I have seen some of the patents which are like a simple idea that any software developer can come up with but its patented... I read at least one news about some one being sued by someone for the patent that they have and we have seen(or I can say right now watching) the patent war which is happening between Samsung and Apple and Google and Microsoft on patents. These big companies buys companies with patents so that they can sue their competitors and block them to make profit. Word Wide Web I think was designed to make data or the information available to public but now it has became a patent web where if you do/design something you first need to check whether whatever you are developing whether is it patented, if yes then ?? is there any solution?? I don't know. In such web how a small startup can grow when there are these big fishes which are waiting for a small to fish to come up and then they will swallow it and then again sue someone!!!
AES stands for Advanced Encryption Standard. AES is an Symmetric Key Algorithm, that means key used for encrypting the data, same key will be used for decryption of the encrypted data. This algorithm supplants DES algorithm. This post shows how to use AES algorithm in Java to encrypt and decrypt data. Encrypting Data- import java.security.GeneralSecurityException; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.crypto.SecretKey; public class AESTest1 { public static void main(String[] args) throws GeneralSecurityException { KeyGenerator keyGenerator = KeyGenerator.getInstance("AES"); keyGenerator.init(128); SecretKey key = keyGenerator.generateKey(); Cipher cipher = Cipher.getInstance("AES"); cipher.init(Cipher.ENCRYPT_MODE, key); byte encryptedData[] = cipher.doFinal(args[0].getBytes()); } } In above example we have used KeyGenerator class, which generates key for encrypting data, as we are using...
Comments
Post a Comment