Re: [Dcrup] Hashed Key Records

"John Levine" <johnl@taugh.com> Fri, 23 June 2017 01:18 UTC

Return-Path: <johnl@taugh.com>
X-Original-To: dcrup@ietfa.amsl.com
Delivered-To: dcrup@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D7C2A129BDA for <dcrup@ietfa.amsl.com>; Thu, 22 Jun 2017 18:18:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LnDNnRQMLcNw for <dcrup@ietfa.amsl.com>; Thu, 22 Jun 2017 18:18:55 -0700 (PDT)
Received: from miucha.iecc.com (www.iecc.com [IPv6:2001:470:1f07:1126::4945:4343]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3250E129BBD for <dcrup@ietf.org>; Thu, 22 Jun 2017 18:18:55 -0700 (PDT)
Received: (qmail 71411 invoked from network); 23 Jun 2017 01:18:53 -0000
Received: from unknown (64.57.183.18) by mail1.iecc.com with QMQP; 23 Jun 2017 01:18:53 -0000
Date: Fri, 23 Jun 2017 01:18:31 -0000
Message-ID: <20170623011831.27734.qmail@ary.lan>
From: John Levine <johnl@taugh.com>
To: dcrup@ietf.org
Cc: sklist@kitterman.com
In-Reply-To: <2793611.63lxTaCm4r@kitterma-e6430>
Organization:
X-Headerized: yes
Mime-Version: 1.0
Content-type: text/plain; charset="utf-8"
Content-transfer-encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/dcrup/y8LOGlgjqq2KUBuHVpjBf5_I9I0>
Subject: Re: [Dcrup] Hashed Key Records
X-BeenThere: dcrup@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: DKIM Crypto Update <dcrup.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dcrup>, <mailto:dcrup-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dcrup/>
List-Post: <mailto:dcrup@ietf.org>
List-Help: <mailto:dcrup-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dcrup>, <mailto:dcrup-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 23 Jun 2017 01:18:57 -0000

In article <2793611.63lxTaCm4r@kitterma-e6430> you write:
>'Hello World'
>
>Then the the p tag in DNS would be:
>
>p=pZGm1Av0IEBKARczz7exkNYsZb8LzaMrV7J32a2fFG4=
>
>Am I understanding it correctly?

Yes.

For us oldthinkers who use shell scripts:

$ echo -n 'Hello World'|openssl sha256 -binary|base64
pZGm1Av0IEBKARczz7exkNYsZb8LzaMrV7J32a2fFG4=

R's,
John

PS: In the interest of not inventing anything new, since every
existing DKIM key record has a base64 version of the data, these do
too.