Posts

Showing posts from October, 2021

Cryptography

Image
Symmetric Key Encryption Asymmetric Key Encryption It only requires a single key for both encryption and decryption. It requires two key one to encrypt and the other one to decrypt. The size of cipher text is same or smaller than the original plain text. The size of cipher text is same or larger than the original plain text. The encryption process is very fast. The encryption process is slow. It is used when a large amount of data is required to transfer. It is used to transfer small amount of data. It only provides confidentiality. It provides confidentiality, authenticity and non-repudiation. Examples: 3DES, AES, DES and RC4 Examples: Diffie-Hellman, ECC, El Gamal, DSA and RSA In symmetric key encryption, resource utilization is low as compared to asymmetric key encryption. In asymmetric key encryption, resource utilization is high.   -----------------------

JDBC, jsp,servlet

Image
                  JDBC ( Java Database Connectivity) in above image orange color: classes hai Blue color: interfaces hai download mysql driver and set classpath : youtube link                                            FirstJDBC.java import java.sql. * ; class FirstJDBC {     public static void main ( String args[]){         try {       // load the driver         Class . forName ( "com.mysql.cj.jdbc.Driver" );         // creating connection         String url = "jdbc:mysql://localhost:3306/youtube" ;         String username = "root" ;         String password = "root" ;         Connection con = DriverManager . getConnection (url,username,password); ...