BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.util.MessageDigestUtil Class Reference

Static Public Member Functions

static String createHash (String algorithm, String message)
 
static byte[] getBytes (File directory) throws Exception
 

Detailed Description

Utility class implementing MD5 hash function used to protect passwords.

Author
Maciej Szewczykowski :: macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
1.0
Since
1.0

Member Function Documentation

◆ createHash()

static String eu.baltrad.dex.util.MessageDigestUtil.createHash ( String algorithm,
String message )
inlinestatic

Create message hash.

Parameters
algorithmAlgorithm
messageInput message
Returns
Message hash

◆ getBytes()

static byte[] eu.baltrad.dex.util.MessageDigestUtil.getBytes ( File directory) throws Exception
inlinestatic

Reads file or directory into byte array.

Parameters
directoryFile or directory to read
bytesByte array
Returns
Byte array
Exceptions
RuntimeException

The documentation for this class was generated from the following file: