Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For Maven/Gradle support #1

Open
fernandodev opened this issue Jun 19, 2015 · 4 comments
Open

For Maven/Gradle support #1

fernandodev opened this issue Jun 19, 2015 · 4 comments

Comments

@fernandodev
Copy link

Hi!

Nice job! Nice lib!

Please, may you release it on Maven Central? Any doubts, feel free to ask me how to do. You can inspect my repositories if you wish.

Thank you!

@TroniPM
Copy link

TroniPM commented Jul 1, 2015

@fernandodev any news about this topic?

@fernandodev
Copy link
Author

@TroniPM no news about it. 😞
I'm using a small code snippet to get arround it (avoid import/compile another project into my own)

Try it if it's better for you:

MD5 Helper

import org.apache.commons.codec.binary.Hex;
import org.apache.commons.codec.digest.DigestUtils;

import java.security.MessageDigest;

/**
 * Created by fernandomartinez on 6/19/15.
 */
public class MD5 {

  public static String md5(String string) {
    return new String(Hex.encodeHex(DigestUtils.md5(string)));
  }
}

Gravatar Helper

public class Gravatar {

  public static String gravatarUrl(String email) {
    return "http://www.gravatar.com/avatar/" + MD5.md5(email);
  }
}

To use DigestUtils.md5 you need to add compile 'commons-codec:commons-codec:1.4' as project dependency

@TroniPM
Copy link

TroniPM commented Jul 9, 2015

@fernandodev great trick. 👍

@sooorajjj
Copy link

Thanks @fernandodev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants