@TimStone: and @TylerChacha: and @GeorgeMarian: and @mootinator: My desire is i want to encrypt and decrypt a file in java, for that i had reffered this article
www-users.york.ac.uk/~mal503/lore/pkencryption.htm, it works fine , but the problem when i encrypt, it thorws me the error called java.security.InvalidKeyException: Illegal key size or default parameters any idea on this error, i may think wthether the key is genearted by openssl is not right