Dear list,

I have this minimal sample:

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

  \def\sha#1{%
      \ctxlua{context(utilities.sha2.hash512("#1"))}}

  \startbuffer[text]
  hola
  \stopbuffer

  \starttext
  \sha{hola}

  \sha{\typebuffer[text]}
  \stoptext

How can I get that both commands get the same sha512sum?

Many thanks for your help,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to