String (@NotNull String s) { MessageDigest md5 = DigestUtil.md5(); StringBuilder sb = new StringBuilder(); byte[] digest = md5.digest(s.getBytes(StandardCharsets.UTF_8)); for (byte b : digest) { sb.append(Integer.toHexString(b)); } return sb.toString(); }