From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115849 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hans van der Meer via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: SHA calculation Date: Sun, 28 Aug 2022 19:27:26 +0200 Message-ID: References: <0CF90845-7D0B-4D83-AB8E-FA283D41ECEA@ziggo.nl> <907e08a6-07ad-e2e6-60b2-067c4509caff@gmx.es> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: multipart/mixed; boundary="===============2487544276680464767==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6090"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Hans van der Meer To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 28 19:28:04 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oSM4p-0001OX-2X for gctc-ntg-context-518@m.gmane-mx.org; Sun, 28 Aug 2022 19:28:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1C2482A40F2; Sun, 28 Aug 2022 19:27:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I7HGdGd9tlnh; Sun, 28 Aug 2022 19:27:29 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BE0BF2A40F3; Sun, 28 Aug 2022 19:27:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0D8182A40E9 for ; Sun, 28 Aug 2022 19:27:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hpA9uV4nUcAL for ; Sun, 28 Aug 2022 19:27:27 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.54.42.168; helo=smtpq5.tb.mail.iss.as9143.net; envelope-from=havdmeer@ziggo.nl; receiver= Original-Received: from smtpq5.tb.mail.iss.as9143.net (smtpq5.tb.mail.iss.as9143.net [212.54.42.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 326382A405A for ; Sun, 28 Aug 2022 19:27:27 +0200 (CEST) Original-Received: from [212.54.42.105] (helo=smtp1.tb.mail.iss.as9143.net) by smtpq5.tb.mail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSM4E-0001xk-SW for ntg-context@ntg.nl; Sun, 28 Aug 2022 19:27:26 +0200 Original-Received: from smtpclient.apple ([83.81.39.28]) by smtp1.tb.mail.iss.as9143.net with ESMTPA id SM4EoV3N0ih5TSM4Eob5Ly; Sun, 28 Aug 2022 19:27:26 +0200 X-Env-Mailfrom: havdmeer@ziggo.nl X-Env-Rcptto: ntg-context@ntg.nl X-SourceIP: 83.81.39.28 X-CNFS-Analysis: v=2.4 cv=f8Fbuc+M c=1 sm=1 tr=0 ts=630ba57e cx=a_exe a=5GZH0wQrOBWfRyKjT6Y+fA==:117 a=5GZH0wQrOBWfRyKjT6Y+fA==:17 a=MiNTnEJAAAAA:8 a=CteL44qM5DUcWUdea4cA:9 a=CjuIK1q_8ugA:10 a=ETwdVj3AJ0xsQCxl7JcA:9 a=qNV6WnzvGvAVayxh:21 a=_W_S_7VecoQA:10 a=lqcHg5cX4UMA:10 a=LmrbSfiT3hecnSZifb5M:22 X-Authenticated-Sender: havdmeer@ziggo.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ziggo.nl; s=202002corplgsmtpnl; t=1661707646; bh=AFXj0DsUPBOm5UiqiUjH2iCD+TQlvCcWbAu1hPwTO3k=; h=From:Subject:Date:References:To:In-Reply-To; b=SwFN7B0Fj5JKj30UhgUD3fe9Ed3zoH0LylGqbdFuPsNPZK2o6KD4/Mo5MLY3X5z5M Op/Jxnt6Z8l5PZvk7fMKbFUh50R8D86l+mm4q0vx/1WZNnLUvUckrr9QCg46wv2XhF 1Icf62K2AC1MVCAL9wLcnYYQzUmPd+QeH4VIdJAm92lGzaLpLacwv1qHIRYKHxpFe7 K0dA4v6wRQakwGRRGpW6t6xAOBT0xW6fxbt4flOkUpAyjHXnX+wgyLBIgmmm9W1JLR NFPZ6cJ8qqwVapJbRZ9dPbyjfKK5RpVtkU4Q9yXH+8FqFR7VpYQqo+O05eYDGkRZCK X4hBsWzaHnv8g== In-Reply-To: <907e08a6-07ad-e2e6-60b2-067c4509caff@gmx.es> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-CMAE-Envelope: MS4xfHJsUaOUR5isBsDMtEKijQcRL/dGqzGNtoacYmS5Wof3HNeSgfIkC6zBtS1jhz4TWLHLpHPQis8k9vk31pa3pANMxQpdlyaNYRUvdgbO4dgmorS3i9Hr /Y96SgVBgBwUiMLvfE3sgXmlmT5sjgB+RAVLG4rwoITMl6xX4YhrQ0I164bLyLJFAKNM1bAy55Qfcw== X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:115849 Archived-At: --===============2487544276680464767== Content-Type: multipart/alternative; boundary="Apple-Mail=_5A9352A6-A19B-448B-B2F2-1B4F9C69EF21" --Apple-Mail=_5A9352A6-A19B-448B-B2F2-1B4F9C69EF21 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 28 Aug 2022, at 19:07, Pablo Rodriguez via ntg-context = wrote: >=20 > On 8/28/22 12:25, Hans van der Meer via ntg-context wrote: >>=20 >> With \directlua{context(md5.hex([=3D=3D=3D[#1]=3D=3D=3D]))} I can = calculate the MD5 >> checksum.=20 >> I thought there was another call for the calculation of the SHA >> checksum, but I could not find it in the documentation or on the = context >> garden.=20 >> Where to look? >=20 > Dear dr. van der Meer, >=20 > it is my fault since Hans explained this before (to me). >=20 You absolutely need not to apologize. The answer of Hans Hagen was quite = sufficient for me and=20 \def\SHA#1{\directlua{tex.sprint(sha2.hash256([=3D=3D=3D[#1]=3D=3D=3D]))}}= was all I needed. I know Hans from ages ago and he knows what I need in = cases like this. Alas, wikifying is not my thing. Hans van der Meer\= --Apple-Mail=_5A9352A6-A19B-448B-B2F2-1B4F9C69EF21 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii


On 28 Aug 2022, at 19:07, Pablo Rodriguez via ntg-context = <ntg-context@ntg.nl> wrote:

On = 8/28/22 12:25, Hans van der Meer via ntg-context wrote:

With \directlua{context(md5.hex([=3D=3D=3D[#1]=3D=3D=3D]))= } I can calculate the MD5
checksum. 
I = thought there was another call for the calculation of the SHA
checksum, but I could not find it in the documentation or on = the context
garden. 
Where to look?

Dear dr. van der Meer,

it is my fault since Hans explained this = before (to me).


You absolutely need not to apologize. The answer of Hans = Hagen was quite sufficient for me and 
\def\SHA#1{\directlua{tex.sprint(sha2.hash256([=3D=3D=3D[#1]=3D= =3D=3D]))}}
was all I needed. I know = Hans from ages ago and he knows what I need in cases like = this.

Alas, = wikifying is not my thing.

Hans van der Meer\
= --Apple-Mail=_5A9352A6-A19B-448B-B2F2-1B4F9C69EF21-- --===============2487544276680464767== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2487544276680464767==--