mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-08 05:10:20 +01:00
improve ChecksumUtil
This commit is contained in:
@@ -99,6 +99,25 @@ public class ChecksumUtil
|
||||
return Util.toString(digest.digest());
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @param input
|
||||
*
|
||||
* @return
|
||||
*
|
||||
* @throws IOException
|
||||
*/
|
||||
public static String createChecksum(String input) throws IOException
|
||||
{
|
||||
MessageDigest digest = getDigest();
|
||||
|
||||
digest.update(input.getBytes());
|
||||
|
||||
return Util.toString(digest.digest());
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user