2.5.3Weak hashes

Classes providing weak / deprecated hashes

This group of classes provides hashes that are stronger (and longer) then checksums, but not recommended for serious cryptographic purposes (MD2, MD4, MD5 and partly SHA1 can be considered broken).

Classes

Functions

md2

Convenience function that calculates a 128 bits long MD2 hash

md2()
ReturnA lowercase hexadecimal string with the MD2 hash.

This function takes an arbitrary amount of parameters. See HashBase.update() for details.

The semantics are equal to:


    function md2(...)
        hash = MD2Hash()
        hash.update(...)
        hash.finalize()
        return hash.toString()
    end

Note: This is a shortcut function that does neither require creation of a MD2Hash object, nor finalization.

See also: MD2Hash.

md4

Convenience function that calculates a 128 bits long MD4 hash

md4()
ReturnA lowercase hexadecimal string with the MD4 hash.

This function takes an arbitrary amount of parameters. See HashBase.update() for details.

The semantics are equal to:


    function md4(...)
        hash = MD4Hash()
        hash.update(...)
        hash.finalize()
        return hash.toString()
    end

Note: This is a shortcut function that does neither require creation of a MD4Hash object, nor finalization.

See also: MD4Hash.

md5

Convenience function that calculates a 128 bits long MD5 hash

md5()
ReturnA lowercase hexadecimal string with the MD5 hash.

This function takes an arbitrary amount of parameters. See HashBase.update() for details.

The semantics are equal to:


    function md5(...)
        hash = MD5Hash()
        hash.update(...)
        hash.finalize()
        return hash.toString()
    end

Note: This is a shortcut function that does neither require creation of a MD5Hash object, nor finalization.

See also: MD5Hash.

ripemd128

Convenience function that calculates a 128 bits long RIPEMD128 hash

ripemd128()
ReturnA lowercase hexadecimal string with the RIPEMD128 hash.

This function takes an arbitrary amount of parameters. See HashBase.update() for details.

The semantics are equal to:


    function ripemd128(...)
        hash = RIPEMD128Hash()
        hash.update(...)
        hash.finalize()
        return hash.toString()
    end

Note: This is a shortcut function that does neither require creation of a RIPEMD128Hash object, nor finalization.

See also: RIPEMD128Hash.

sha1

Convenience function that calculates a 160 bits long SHA1 hash

sha1()
ReturnA lowercase hexadecimal string with the SHA1 hash.

This function takes an arbitrary amount of parameters. See HashBase.update() for details.

The semantics are equal to:


    function sha1(...)
        hash = SHA1Hash()
        hash.update(...)
        hash.finalize()
        return hash.toString()
    end

Note: This is a shortcut function that does neither require creation of a SHA1Hash object, nor finalization.

See also: SHA1Hash.

See also: SHA1Hash.

Made with http://www.falconpl.org