j

jumble

@preview

A package providing some hash functions and related stuff

v0.0.1
Apache-2.0

Package Information

Last Updated
Minimum Typst Version
0.12.0
Categories
scriptingutility

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/jumble:0.0.1

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/jumble:0.0.1": *

Version History

0.0.10.12.0
6e2a7e37d5a4...

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)