jumble/README.md

1.3 KiB

Banner

Jumble is Typst package providing some common hashing functions, as well as other related algorithms.

Available methods

  • MD4
  • MD5
  • SHA1
  • HMAC
  • NTLM
  • TOTP
  • Base32 encoding / decoding

Usage

For information, please refer to the manual

To use this package, you can either:

  • import the package as a module:
    #import "@preview/jumble:0.0.1"
    ...
    #jumble.md5(...)
    
  • import only the functions you need:
    #import "@preview/jumble:0.0.1": md5
    ...
    #md5(...)
    
  • import everything:
    #import "@preview/jumble:0.0.1": *
    ...
    #md5(...)
    

Examples

Typst Result
#bytes-to-hex(ntlm("Bellevue"))
f59d0692bf73b6381e85902a476f097b
#bytes-to-hex(md4("Hello World!"))
b2a5cc34fc21a764ae2fad94d56fadf6

(more documentation and examples are provided in the manual)