Posts

Encript & Decript -Veer

·       Project 1 import javax.crypto.KeyGenerator; import javax.crypto.SecretKey; import javax.crypto.Cipher; import sun.misc.BASE64Encoder; public class AesEncrDec {     public static void main(String args[]) {         String CT = new AesEncrDec().encrypt("Hello");         System.out.println("Encripted data :"+CT);                 String DT =new AesEncrDec().decrypt(CT);         System.out.println("Decripted data :"+DT);     }     public String encrypt(String data) {         String cipherText = "";         String plainData = data;         try {          ...

Chat Application -Thanveer

Image
1. Create .net web empty project 2. Add a web service for that project. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; using System.Collections; namespace Chat_app_veer {     /// <summary>     /// Summary description for ChatService     /// </summary>     [ WebService (Namespace = "http://veer/chat/app/" )]     [ WebServiceBinding (ConformsTo = WsiProfiles .BasicProfile1_1)]     [System.ComponentModel. ToolboxItem ( false )]     // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.     // [System.Web.Script.Services.ScriptService]     public class ChatService : System.Web.Services. WebService     {         static protec...

Hibernate Application

·          Create Java Class public class Person { private int personid ; private String name; private int age; // Generate Getters and Setters for the above // Properties @Override public String toString() { return "Person: "+getPersonid()+ " Name: "+getName()+ " Age: "+getAge(); } } ·          Create Hibernate configuration file using hibernate configuration wizard. Optional cofig - hibernate.show_sql=true. Miscellaneous - hibernate.current_session_context_class=thread ·          Create Hibernate map file. <id column="personid" name="personid"> <generator class="increment"/> </id> <property column="name" name="name"/> <property column="age" name="age"/> ·          Create Session Factory Util class package hibernatedemo; import org.hiber...