core java
-
rmi

Export Object over RMI example
This is an example of how to Export Object over RMI. The Java Remote Method Invocation (RMI) system allows an…
Read More » -
security

Encrypt/Decrypt a file using DES
In this example we shall show you how to encrypt/decrypt a file using DES. To encrypt and decrypt a file…
Read More » -
security

Calculate the CRC Sum of a file
With this example we are going to demonstrate how to calculate the CRC Sum of a file. The Cyclic Redundancy…
Read More » -
security

Encrypt/Decrypt with salt
This is an example of how to encrypt and decrypt using a salt. The salt is random data very often…
Read More » -
security

Check message consistency using hash functions
In this example we shall show you how to check message consistency using hash functions. We are using the java.security.MessageDigest…
Read More » -
security

SHA-1 hash function example
With this example we are going to demonstrate how to make a SHA-1 hash function example. The Secure Hash Algorithm…
Read More » -
security

Diffie-Helman key pair generation and parameters
This is an example of how to generate key pairs with the Diffie-Helman algorithm. The DH algorithm is be used…
Read More » -
security

Simple symmetric key encrypt/decrypt
In this example we shall show you how to encrypt and decrypt using a symmetric key. In the case of…
Read More » -
security

PBE with a PBEParameterSpec example
With this example we are going to demonstrate how to make PBE using a PBEParameterSpec. In short, to make a…
Read More » -
security

DES with CBC using a nonce IV
This is an example of how to make a DES example in CBC mode using a nonce Iv. Encrypting data…
Read More »
