Package net.sourceforge.plantuml
Class SignatureUtils
- java.lang.Object
-
- net.sourceforge.plantuml.SignatureUtils
-
public class SignatureUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description SignatureUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetMD5Hex(String s)static byte[]getMD5raw(String s)static StringgetSHA512Hex(String s)static byte[]getSHA512raw(byte[] data)static byte[]getSHA512raw(String s)static StringgetSignature(String s)static StringgetSignature(SFile f)static StringgetSignatureSha512(InputStream is)static StringgetSignatureSha512(SFile f)static StringgetSignatureWithoutImgSrc(String s)static Stringpurge(String s)static byte[]salting(String pass, byte[] salt)static StringtoHexString(byte[] data)static StringtoString(byte[] data)
-
-
-
Method Detail
-
salting
public static byte[] salting(String pass, byte[] salt) throws NoSuchAlgorithmException, InvalidKeySpecException
-
toString
public static String toString(byte[] data)
-
toHexString
public static String toHexString(byte[] data)
-
getMD5raw
public static byte[] getMD5raw(String s) throws NoSuchAlgorithmException, UnsupportedEncodingException
-
getSHA512raw
public static byte[] getSHA512raw(String s) throws NoSuchAlgorithmException, UnsupportedEncodingException
-
getSHA512raw
public static byte[] getSHA512raw(byte[] data) throws NoSuchAlgorithmException, UnsupportedEncodingException
-
getSignatureSha512
public static String getSignatureSha512(SFile f) throws IOException
- Throws:
IOException
-
getSignatureSha512
public static String getSignatureSha512(InputStream is) throws IOException
- Throws:
IOException
-
getSignature
public static String getSignature(SFile f) throws IOException
- Throws:
IOException
-
-