Tabnine Logo
MD5.hex
Code IndexAdd Tabnine to your IDE (free)

How to use
hex
method
in
leap.lang.codec.MD5

Best Java code snippets using leap.lang.codec.MD5.hex (Showing top 2 results out of 315)

origin: org.leapframework/leap-core

protected String sign(String token , String expires) {
  String content = token + ":" + expires +  ":" + secret;
  String signed  = MD5.hex(Strings.getBytesUtf8(content));
  return signed;
}
origin: org.leapframework/leap-websecurity

protected String sign(String username, String password, long expires) {
  String key = securityConfig.getRememberMeSecret();
  if(Strings.isEmpty(key)){
    log.debug("Remember-me secret not exists, cannot sign user tokens");
    return null;
  }
  
  String data = username + ":" + expires + ":" + password + ":" + key;
  return MD5.hex(Strings.getBytesUtf8(data));
}

leap.lang.codecMD5hex

Javadoc

Calculates the MD5 digest and returns the value as a hex string.

Popular methods of MD5

    Popular in Java

    • Creating JSON documents from java classes using gson
    • getResourceAsStream (ClassLoader)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • onCreateOptionsMenu (Activity)
    • Graphics2D (java.awt)
      This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
    • Proxy (java.net)
      This class represents proxy server settings. A created instance of Proxy stores a type and an addres
    • HashMap (java.util)
      HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
    • LinkedList (java.util)
      Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
    • Pattern (java.util.regex)
      Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
    • ImageIO (javax.imageio)
    • CodeWhisperer alternatives
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now