
com.venky.digest.Encryptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common Show documentation
Show all versions of common Show documentation
Commonly used programming tasks in java
The newest version!
package com.venky.digest;
import com.venky.core.security.Crypt;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.logging.Logger;
public class Encryptor {
public static String encrypt(String key) {
return encrypt(key,"SHA");
}
public static String encrypt(String key, String algorithm) {
return Crypt.getInstance().toHex(Crypt.getInstance().digest(algorithm,key));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy