utils.DigestProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of skype2gmail Show documentation
Show all versions of skype2gmail Show documentation
Send skype chat history to a gmail account
The newest version!
package utils;
import org.apache.commons.codec.digest.DigestUtils;
import com.google.inject.Singleton;
@Singleton
public class DigestProvider {
public String encode(String data) {
return DigestUtils.md5Hex(data);
}
public String extendedEncode(String data) {
return DigestUtils.sha256Hex(data);
}
}