CryptUtils: jdoc and code should agree
authorNiki Roo <niki@nikiroo.be>
Mon, 22 Apr 2019 19:23:28 +0000 (21:23 +0200)
committerNiki Roo <niki@nikiroo.be>
Mon, 22 Apr 2019 19:23:28 +0000 (21:23 +0200)
src/be/nikiroo/utils/CryptUtils.java

index d5413d7c392f6856405b3b25e0fcab989ff4de68..8d39ccfa9e5a15d4e7db1e4650987464ea0cc973 100644 (file)
@@ -279,6 +279,6 @@ public class CryptUtils {
         * @return a 128 bits key computed from the given input
         */
        static private byte[] key2key(String input) {
-               return StringUtils.getMd5Hash(input).getBytes();
+               return StringUtils.getMd5Hash("" + input).getBytes();
        }
 }