All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gravity.gdk.util.hash.package.scala Maven / Gradle / Ivy

The newest version!
package com.gravity.gdk.util

import java.security.MessageDigest

/*
              ___...---''
  ___...---'\'___
''       _.-''  _`'.______\\.
        /_.)  )..-  __..--'\\
       (    __..--''
        '-''\@


 Ⓐ Ⓐ Ⓐ Ⓐ Ⓐ Ⓐ Ⓐ Ⓐ Ⓐ Ⓐ Ⓐ
*/

package object hash {
  def md5(str: String): String = MessageDigest.getInstance("MD5").digest(str.getBytes()).map(0xFF & _)
    .map("%02x".format(_)).mkString
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy