Added the complete code for Linux and Windows. Now the encryption is working in Windows also