Password Encryption Decryption in Java with Java 9+ modules
Java AES Encryption and Decryption
Advanced Encryption Standard is one of the most popular encryption algorithms. It is an asymmetric encryption algorithm and more secure.
AES is generally used for securing sensitive information so we can say that is enough secure.
Before AES most of the organizations used the DES( Data Encryption Standard) algorithm which is not secure and most of the organizations considered that highly insecure.
Feature of AES
AES is the replacement for DES. Some features of AES are listed below:
- Symmetric key symmetric block cipher
- 128-bit data, 128/192/256-bit keys
- Stronger and faster than Triple-DES
- Provide full specification and design details
- Software implementable in C and Java
Below is the utility class which will be used for encryption and decryption in Java applications.
Java Modules
Starting with Java 9 a new concept was introduced: modules. Java modules represent a more powerful mechanism to organize and aggregate packages.
A Java module is a way to group packages and configure more granulated access to package contents. A Java module is a uniquely named, reusable group of packages and resources (e.g., XML files and other types of non-Java files) described by a file named module-info.java, located at the root of the source directory.
Diagram module-info |
Comments
Post a Comment