Throw IllegalArgumentException instead of RuntimeException on bad input
to EncryptUtils
diff --git a/core/src/main/java/org/apache/ftpserver/util/EncryptUtils.java b/core/src/main/java/org/apache/ftpserver/util/EncryptUtils.java
index 7707726..072864d 100644
--- a/core/src/main/java/org/apache/ftpserver/util/EncryptUtils.java
+++ b/core/src/main/java/org/apache/ftpserver/util/EncryptUtils.java
@@ -64,7 +64,7 @@
             result = encrypt(source, "MD5");
         } catch (NoSuchAlgorithmException ex) {
             // this should never happen
-            throw new RuntimeException(ex);
+            throw new IllegalArgumentException(ex);
         }
         return result;
     }
@@ -82,7 +82,7 @@
             result = encrypt(source, "SHA");
         } catch (NoSuchAlgorithmException ex) {
             // this should never happen
-            throw new RuntimeException(ex);
+            throw new IllegalArgumentException(ex);
         }
         return result;
     }