jumble/README.md
2024-12-22 23:05:33 +01:00

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 "jumble/src/lib.typ" as jumble
    ...
    #jumble.md5(...)
    
  • import the functions you need from src/lib.typ:
    #import "jumble/src/lib.typ": md5
    ...
    #md5(...)
    
  • import everything:
    #import "jumble/src/lib.typ": *
    ...
    #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)