hash algorithm.
More...
|
static String | hash ( @Nonnull final IContext p_context, @Nonnull final String p_algorithm, @Nonnull final byte[] p_data) |
| runs hashing function with difference between Google Guava hashing and Java default digest More...
|
|
static byte [] | serialize ( @Nonnull final IContext p_context, @Nonnull final ITerm p_object) |
| serialize data More...
|
|
The actions creates a hash values of datasets, the first argument is the name of the hasing algorithm (Adler-32, CRC-32, CRC-32C, Murmur3-32, Murmur3-128, Siphash-2-4, MD2, MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512), for all other unflatten arguments a hash value is calculated and the action returns the hash values back and never fails
[Hash1 | Hash2 | Hash3] = crypto/
hash(
"Adler-32 | CRC-32 | CRC-32C | ...", Dataset1, Dataset2, Dataset3 );
- See also
- https://en.wikipedia.org/wiki/Secure_Hash_Algorithm
-
https://en.wikipedia.org/wiki/MD2_(cryptography)
-
https://en.wikipedia.org/wiki/MD5
-
https://en.wikipedia.org/wiki/Adler-32
-
https://en.wikipedia.org/wiki/Cyclic_redundancy_check
-
https://en.wikipedia.org/wiki/MurmurHash
-
https://en.wikipedia.org/wiki/SipHash
-
http://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#MessageDigest
-
https://github.com/google/guava/wiki/HashingExplained
Definition at line 65 of file action/builtin/crypto/CHash.java.
◆ execute()
final IFuzzyValue<Boolean> org.lightjason.agentspeak.action.builtin.crypto.CHash.execute |
( |
final boolean |
p_parallel, |
|
|
@Nonnull final IContext |
p_context, |
|
|
@Nonnull final List< ITerm > |
p_argument, |
|
|
@Nonnull final List< ITerm > |
p_return |
|
) |
| |
◆ hash()
static String org.lightjason.agentspeak.action.builtin.crypto.CHash.hash |
( |
@Nonnull final IContext |
p_context, |
|
|
@Nonnull final String |
p_algorithm, |
|
|
@Nonnull final byte [] |
p_data |
|
) |
| |
|
staticprivate |
◆ minimalArgumentNumber()
final int org.lightjason.agentspeak.action.builtin.crypto.CHash.minimalArgumentNumber |
( |
| ) |
|
◆ serialize()
static byte [] org.lightjason.agentspeak.action.builtin.crypto.CHash.serialize |
( |
@Nonnull final IContext |
p_context, |
|
|
@Nonnull final ITerm |
p_object |
|
) |
| |
|
staticprivate |
◆ serialVersionUID
final long org.lightjason.agentspeak.action.builtin.crypto.CHash.serialVersionUID = 4638666396527392307L |
|
staticprivate |