List/Grid crypto Subscribe RSS feed of category crypto

Get bytes of generated symmetric key
package com.javacodegeeks.snippets.core;import java.security.NoSuchAlgorithmException;import javax.crypto.KeyGenerator; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec;public ...

Generate Message Authentication Code (MAC)
package com.javacodegeeks.snippets.core;import java.io.UnsupportedEncodingException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException;import ...

Encrypt/Decrypt file/stream with DES
This is an example of how to encrypt or decrypt a file or stream with DES. DES in computing refers to the Data Encryption Standard and is supported by Java. To encrypt or decrypt a ...

List available Encryption/Decryption algorithms
package com.javacodegeeks.snippets.core;import java.security.Provider; import java.security.Security; import java.util.Iterator; import java.util.Set; import java.util.TreeSet;public ...

List available cryptographic services
package com.javacodegeeks.snippets.core;import java.security.Provider; import java.security.Security; import java.util.Iterator; import java.util.Set; import java.util.TreeSet;public ...

Encrypt/Decrypt with DES using pass phrase
package com.javacodegeeks.snippets.core;import java.security.InvalidAlgorithmParameterException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import ...

Encrypt/Decrypt object with DES
package com.javacodegeeks.snippets.core;import java.io.IOException; import java.io.Serializable; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException;import ...

Encrypt/Decrypt string with DES
package com.javacodegeeks.snippets.core;import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException;import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import ...


