Search Results for: java 8
-
Socket
Create client Socket with timeout
In this example we shall show you how to create a client Socket with timeout. A client socket is an…
Read More » -
Socket
Create client Socket
With this example we are going to demonstrate how to create a client Socket in Java. In short, to create…
Read More » -
URLConnection
Get response headers from HTTP request
With this example we are going to demonstrate how to get response headers from an HTTP request in Java. In…
Read More » -
URLConnection
Send cookie with HTTP request
This is an example of how to send a cookie with an HTTP request in Java. In short, to send…
Read More » -
URLConnection
Get cookies from HTTP connection
With this example we are going to demonstrate how to get cookies from an HTTP connection in Java. In short,…
Read More » -
CharBuffer
Convert Between Character Set Encodings with CharBuffer
In this example we shall show you how to convert between character set encodings with a CharBuffer in Java. To…
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
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 »