I know that there is a lot of similar topics, but still... can someone provide me a working example of method which generates MD5 String. I\'m currently using MessageDig
MessageDigest md = MessageDigest.getInstance("MD5"); byte[] arr = md.digest(bytesOfMessage); return Base64.getEncoder().encodeToString(arr);
note: md5 is not considered as good hash algorithm anymore, consider choosing SHAs