Commits

dloy committed 79ac0a6

Add retrieveENC

Comments (0)

Files changed (1)

fixity-src/src/main/java/org/cdlib/mrt/fixity/db/FixityItemDB.java

              }
          } catch (Exception ex) { }
      }
+
+    public static String retrieveENC(String key)
+        throws TException
+    {
+        try {
+            if (StringUtil.isEmpty(key)) return "";
+            return SecurityUtil.desEncrypt(key, PW);
+
+        } catch (Exception ex) {
+            System.out.println(MESSAGE + "retrieveENC: "
+                    + " - key=\"" + key + "\""
+                    + " - Exception:" + ex);
+            return "";
+        }
+    }
 }