There are multiple ways to generate the MD5 hash in Java program. Not only Java API provides a convenient method for generating MD5 hash, you can also use popular open-source frameworks like Spring and Apache commons Codec to generate MD5 digest in Java. MD5 is a popular Message-Digest Algorithm, which is most commonly used to check data integrity e.g. comparing MD5 checksum to see, if any file is altered or not. Though MD5 has not considered a good cryptographic algorithm for security purposes due to several vulnerabilities found on it, it's still good enough or checking the integrity of the file. MD5 hashing algorithm generates a 128 bit or 16-byte long hash value.
Wednesday, June 11, 2025
Wednesday, June 4, 2025
Top 23 Design Patterns Experienced Java Programmers Should Learn
Hello guys, if you want to learn Design Patterns and looking for a comprehensive tutorial which covers all important object oriented design pattern then you have come to the right place. Earlier, I have shared best Design pattern courses and books for experienced developers and in this article, I will introduce you with 23 common object oriented design patterns for writing better code. Design Patterns are tried and tested way of solving a problem within a given context. They are not invented, rather they are discovered, which is also obvious by use of word pattern. By using design pattern, you take knowledge of all wide communities and can safely use it to solve that problem. At times they might not give you perfect solution, require bit of tweaking, but they certainly provides one of the best solution, as long as you use them properly. While doing object oriented development, they are numerous task which appears quite often e.g. creating objects, structuring code, and implementing different behaviors based on different context.
Saturday, April 12, 2025
How to Reverse an Array in Java? Integer and String Array Example Tutorial
This Java tip is about, how to reverse an array in Java, mostly primitive
types e.g. int, long, double and String arrays. Despite
of Java’s rich Collection API, use of array is quite common, but standard JDK
doesn’t have great utility classes for Java. It’s difficult to convert between
Java Collection e.g. List,
Set
to primitive arrays. Java’s array utility class java.util.Arrays, though
offers some the critical functionalities like comparing
arrays in Java and support
to print arrays, It lacks a lot of common features, such as combining
two arrays and reverse primitive or object array.
Labels:
Array
,
coding
,
core java
,
data structure and algorithm
,
Java Programming Tutorials
Subscribe to:
Posts
(
Atom
)