[NTG-context] hash for buffer contents

Pablo Rodriguez oinos at gmx.es
Wed Sep 21 18:37:13 CEST 2022


Dear list,

I have the following sample:

  \ctxlua{require("util-sha")}

  \starttext

  \startbuffer[abc]
  samples
  \stopbuffer

  \cldcontext{utilities.sha2.hash512("buffer-name")}
  \stoptext

Is there any way to get "utilities.sha2.hash512" with the contents of
the "abc" buffer?

Many thanks for your help,

Pablo


More information about the ntg-context mailing list