I need to create two simple methods for string DES encryption/decruption. The goal is to have these two methods in the following form
public static String desEcnrypt(String key, String clearMessage) { ..... }
public static String desDecrypt(String key, String encryptedMessage) { ..... }
I haven't found yet any example in this form.