Showing posts from 2017

Solve Illegal key size or default parameters

Solve Illegal key size or default parameters When first time I was working on AES 256 bit encyrption, I faced above exception. I tried everything and was frustrated what is the main cause. Then I reasearhed little bit on this, and found this has to do with " Java Cryptography Extension (JCE) Unlimited Strength Policy Files" . So, What is  JCE Unlimited Strength Policy ? So when you install JDK / JRE on your machine a normal version of JCE policy jars is included which doesn't support higher bit (256 in my case) encryption / decryption. The reason behind this is, US has restrictions on the export of cryptographic technology: They used to be very strict -- cryptography was classified as munitions, and you can only download the full strength products from the US and other white-listed countries. Restrictions have eased up a lot since then,

Why Spring

Today we will talk about Spring framework. Though you will find numerous websites and blogging available on internet regarding spring, I am going to put some more insight on why spring was needed and how the spring framework works. The basic motive of spring development was dependency injection and simplified programming model using java-beans (simple POJO). So what is mean by dependency injection.?     Every class will define there dependency. And the spring container will provide you the same.     for eg. You went to restaurant , and asked for a coffee, burgers. Now there are two types how the order will be delivered,         1. Self service. (Service Locator Pattern)         2. Service by the Restaurant staff. (Dependency injection)         1. The Service Locator Pattern:          Now in the above example the Restaurant is the Spring application container who provide all types of services. You ask the Spring application container for one service and look for it yourself.  

Lets Begin

Better late than never Though I wanted to start blogging since my college days, I never really gave great attention to it. In my professional and personal life I have read many blogs, websites, forums. From last few days, I had thinking that in  some ways  we can share our knowledge, thinking with people. You never know it might help someone, change someone else life.  Since I am from Information Technology background I will be mostly posting about technology and related stuff, but you may find some interesting stuff as well, so you will not get bored. विद्यां ददाति विनयं विनयाद् याति पात्रताम् । पात्रत्वात् धनमाप्नोति धनात् धर्मं ततः सुखम् ॥ True knowledge gives discipline, from discipline comes worthiness, from worthiness one gets wealth, from wealth (one does) good deeds, from that (comes) joy.