LocalDateTime ZoneId example

LocalDateTime ZoneId example

LocalDateTime ZoneId example LocalDateTime class added in JDK 8 and here it gives date time without time zone in ISO-8601 calendar system and if you want to specify explicitly ZoneId to get the time please see example below:

LocalDate Java Example

LocalDate Java Example

LocalDate Java Example This class has been introduced in JDK 1.8 which can be used without time-zone in the ISO-8601 calendar system and it will fetch local date based on the location.

DESede Encryption Decryption Java

DESede Encryption Decryption Java

DESede Encryption Decryption Java DESede is an alias fo TripleDES encryption and both return will return exactly same cipher. In encytpion algorithim DESede encription algorithim works on all JavA platform. In actual practice TripleDES widely accepted. Please have sample DESede … Continue reading

Base64 Encryption Java

Base64 Encryption Java

Base64 Encryption Java Java 8 included Base64 encoder in util package to achieve encoing. Base64 class implements encoder for encoding byte data using Base64 encoding scheme as specified in RFC 4648 and RFC 2045. Thes instances of the Base64.Encoder class … Continue reading

String Encryption Java

String Encryption Java

String Encryption Java If you are working on project where you need to encrypt string using Java then you could use below simple program to encrypt and decrypt string: