Select Git revision
onion_binary.md
onion_binary.md 1.67 KiB
Module onion_binary
Binary Utility API.
Authors: Alexander Færøy (ahf@0x90.dk
).
Description
This module contains various utility functions that are found useful when working with binaries.
Function Index
fingerprint/1 | Get the fingerprint of a given binary. |
fingerprint/2 | Apply the hash algorithm to the input and get the fingerprint. |
trim/2 |
Function Details
fingerprint/1
fingerprint(Data) -> binary()
Data = binary()
Get the fingerprint of a given binary.
fingerprint/2
fingerprint(Hash, Data) -> binary()
Hash = crypto:hash_algorithm()
Data = binary()
Apply the hash algorithm to the input and get the fingerprint.
trim/2
trim(Subject, Pattern) -> Result
Subject = binary()
Pattern = binary() | [binary()]
Result = binary()