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 String
getMD5Hex(String s)
static byte[]
getMD5raw(String s)
static String
getSHA512Hex(String s)
static byte[]
getSHA512raw(byte[] data)
static byte[]
getSHA512raw(String s)
static String
getSignature(String s)
static String
getSignature(SFile f)
static String
getSignatureSha512(InputStream is)
static String
getSignatureSha512(SFile f)
static String
getSignatureWithoutImgSrc(String s)
static String
purge(String s)
static byte[]
salting(String pass, byte[] salt)
static String
toHexString(byte[] data)
static String
toString(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
-
-