How To Use Reflection To Copy Properties From Pojo To Other Java Beans Requirements 1.commons-beanutils , you can download from here http:...
Read More
Generating keystore files
Generating keystore files To configure the software to use SSL/HTTPS for secure communication, first create a keystore file. This key file...
Read More
Symetric: Encryption and decryption by same key
package com.kartik; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import javax.crypto.BadP...
Read More
Asymetric: Encryption by public key and decryption by private key where third party user use your public key
package com.kartik; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutpu...
Read More
Algorithm for HashMac
Lastly, we are : package com.kartik; import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; import java.io.Unsuppor...
Read More
Subscribe to:
Posts (Atom)