@Singleton public class DigestUdfSource extends Object implements UdfSourceAssembly
import 'net.hasor.dataql.fx.encryt.DigestUdfSource' as digest;UdfSourceAssembly.TypeUdfMap, UdfSourceAssembly.UdfName, UdfSourceAssembly.UdfParams| 构造器和说明 |
|---|
DigestUdfSource() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
digestBytes(net.hasor.dataql.fx.encryt.DigestUdfSource.DigestType digestType,
List<Byte> content)
使用指定方式进行摘要计算
|
static byte[] |
digestString(net.hasor.dataql.fx.encryt.DigestUdfSource.DigestType digestType,
String content)
使用指定方式进行摘要计算
|
static byte[] |
md5_bytes(List<Byte> content)
字节数组的 MD5
|
static byte[] |
md5_string(String content)
字符串的 MD5
|
static byte[] |
sha_bytes(List<Byte> content)
字节数组的 SHA
|
static byte[] |
sha_string(String content)
字符串的 SHA
|
static byte[] |
sha1_bytes(List<Byte> content)
字节数组的 SHA1
|
static byte[] |
sha1_string(String content)
字符串的 SHA1
|
static byte[] |
sha256_bytes(List<Byte> content)
字节数组的 SHA-256
|
static byte[] |
sha256_string(String content)
字符串的 SHA-256
|
static byte[] |
sha512_bytes(List<Byte> content)
字节数组的 SHA-512
|
static byte[] |
sha512_string(String content)
字符串的 SHA-512
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPredicate, getSupplier, getUdfResourcepublic static byte[] digestBytes(net.hasor.dataql.fx.encryt.DigestUdfSource.DigestType digestType, List<Byte> content) throws NoSuchAlgorithmException
public static byte[] digestString(net.hasor.dataql.fx.encryt.DigestUdfSource.DigestType digestType, String content) throws NoSuchAlgorithmException
public static byte[] md5_bytes(List<Byte> content) throws NoSuchAlgorithmException
public static byte[] md5_string(String content) throws NoSuchAlgorithmException
public static byte[] sha_bytes(List<Byte> content) throws NoSuchAlgorithmException
public static byte[] sha_string(String content) throws NoSuchAlgorithmException
public static byte[] sha1_bytes(List<Byte> content) throws NoSuchAlgorithmException
public static byte[] sha1_string(String content) throws NoSuchAlgorithmException
public static byte[] sha256_bytes(List<Byte> content) throws NoSuchAlgorithmException
public static byte[] sha256_string(String content) throws NoSuchAlgorithmException
public static byte[] sha512_bytes(List<Byte> content) throws NoSuchAlgorithmException
public static byte[] sha512_string(String content) throws NoSuchAlgorithmException
Copyright © 2020. All rights reserved.