org.digimead.digi.ctrl.lib.util

Hash

object Hash extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Hash
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apacheCrypt(password: String, salt: String): String

    This method actually generates an Apache MD5 compatible md5-encoded password hash from a plaintext password and a salt.

    This method actually generates an Apache MD5 compatible md5-encoded password hash from a plaintext password and a salt.

    The resulting string will be in the form '$apr1$<salt>$<hashed mess>'

    param password Plaintext password param salt A short string to use to randomize md5. May start with $apr1$, which will be ignored. It is explicitly permitted to pass a pre-existing MD5Crypt'ed password entry as the salt. crypt() will strip the salt chars out properly.

    returns

    An Apache-compatible md5-hashed password string.

  7. def apacheCrypt(password: String): String

    This method generates an Apache MD5 compatible md5-encoded password hash from a plaintext password and a salt.

    This method generates an Apache MD5 compatible md5-encoded password hash from a plaintext password and a salt.

    The resulting string will be in the form '$apr1$<salt>$<hashed mess>'

    password

    Plaintext password

    returns

    An Apache-compatible md5-hashed password string.

  8. def apply(text: String, algorithm: String = "SHA-1"): String

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def bytes2u(inp: Byte): Int

    convert an encoded unsigned byte value into a int with the unsigned value.

  11. def clearbits(bits: Array[Byte]): Unit

  12. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def crypt(password: String, _salt: String, magic: String): String

    This method actually generates md5-encoded password hash from a plaintext password, a salt, and a magic string.

    This method actually generates md5-encoded password hash from a plaintext password, a salt, and a magic string.

    There are two magic strings that make sense to use here.. '$1$' is the magic string used by the FreeBSD/Linux/OpenBSD MD5Crypt algorithm, and '$apr1$' is the magic string used by the Apache MD5Crypt algorithm.

    The resulting string will be in the form '<magic><salt>$<hashed mess>

    param password Plaintext password param salt A short string to use to randomize md5. May start with the magic string, which will be ignored. It is explicitly permitted to pass a pre-existing MD5Crypt'ed password entry as the salt. crypt() will strip the salt chars out properly. param magic Either "$apr1$" or "$1$", which controls whether we are doing Apache-style or FreeBSD-style md5Crypt.

    returns

    An md5-hashed password string.

  14. def crypt(password: String, salt: String): String

    This method actually generates a OpenBSD/FreeBSD/Linux PAM compatible md5-encoded password hash from a plaintext password and a salt.

    This method actually generates a OpenBSD/FreeBSD/Linux PAM compatible md5-encoded password hash from a plaintext password and a salt.

    The resulting string will be in the form '$1$<salt>$<hashed mess>'

    password

    Plaintext password

    salt

    A short string to use to randomize md5. May start with $1$, which will be ignored. It is explicitly permitted to pass a pre-existing MD5Crypt'ed password entry as the salt. crypt() will strip the salt chars out properly.

    returns

    An OpenBSD/FreeBSD/Linux-compatible md5-hashed password field.

  15. def crypt(password: String): String

    This method actually generates a OpenBSD/FreeBSD/Linux PAM compatible md5-encoded password hash from a plaintext password and a salt.

    This method actually generates a OpenBSD/FreeBSD/Linux PAM compatible md5-encoded password hash from a plaintext password and a salt.

    The resulting string will be in the form '$1$<salt>$<hashed mess>'

    password

    Plaintext password

    returns

    An OpenBSD/FreeBSD/Linux-compatible md5-hashed password field.

  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def to64(_v: Long, _size: Int): String

  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. def verifyPassword(plaintextPass: String, md5CryptText: String): Boolean

    This method tests a plaintext password against a md5Crypt'ed hash and returns true if the password matches the hash.

    This method tests a plaintext password against a md5Crypt'ed hash and returns true if the password matches the hash.

    This method will work properly whether the hashtext was crypted using the default FreeBSD md5Crypt algorithm or the Apache md5Crypt variant.

    plaintextPass

    The plaintext password text to test.

    md5CryptText

    The Apache or FreeBSD-md5Crypted hash used to authenticate the plaintextPass.

  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any