Rocksolid Light

OCTADE

mail  files  register  groups  login

Message-ID:  


USENET / sci.crypt / Re: Disguise format preserving encryption as OTP encryption

Re: Disguise format preserving encryption as OTP encryption

<AABliJcHhtMAAA9K.A3.flnews@o15.ybtra.de>

  copy mid

https://news.octade.net/USENET/article-flat.php?id=143&group=sci.crypt#143

  copy link   Newsgroups: sci.crypt
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news-2.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: 333200007110-0201@ybtra.de (Marcel Logen)
Newsgroups: sci.crypt
Subject: Re: Disguise format preserving encryption as OTP encryption
Date: Sun, 24 Dec 2023 21:39:35 +0100
Organization: Bureau Logen
Lines: 31
Message-ID: <AABliJcHhtMAAA9K.A3.flnews@o15.ybtra.de>
References: <um9n4m$v4qt$1@i2pn2.org>
Mime-Version: 1.0
X-Trace: individual.net D5iw7hY0JbiJ/OxnvyutGgwRostTOC2RGV4vNamPIHdyHb4BzD
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:R9vA5RJpvz+ZNd7y8fHcTudS1Rg= sha256:pA8NWsBdnUSlFl4nqMkcd4VKSPMzDZ17A79Nw14zL+c=
Injection-Date: Sun, 24 Dec 2023 20:39:35 -0000
User-Agent: flnews/1.2.1pre5 (for GNU/Linux)
 by: Marcel Logen - Sun, 24 Dec 2023 20:39 UTC

Stefan Claas in sci.crypt:

>echo -n 'Merry Christmas and a Happy New Year' | base16 -l 0
>4d65727279204368726973746d617320616e642061204861707079204e65772059656172
>
>Now we encrypt this message with fpe, a 256 bit key and a 64 bit nonce:
>
>ca94a7a70929a2eb44faf7a9195541be16a97ab17e0a40cd95c81978f14fcdf6b76892ae
>
>After that we convert the hex string to decimal
>
>393547191367737629111313439284388256222575714261460221423875982235587707334230765245102

If the FPE ciphertext (accidentally) begins with "00" then there
is a problem to decode the decimal value back to hex, I think:

| user15@o15:/tmp$ BC_LINE_LENGTH=0 bc -q
| ibase=16
| 0094A7A70929A2EB44FAF7A9195541BE16A97AB17E0A40CD95C81978F14FCDF6B76892AE
| 1128075138140356785582134106037437080809532772928038131009875468329041722778648613550

| user15@o15:/tmp$ BC_LINE_LENGTH=0 bc -q
| obase=16
| 1128075138140356785582134106037437080809532772928038131009875468329041722778648613550
| 94A7A70929A2EB44FAF7A9195541BE16A97AB17E0A40CD95C81978F14FCDF6B76892AE

>Merry Christmas

Thanks. Same to you.

Marcel

SubjectRepliesAuthor
o Disguise format preserving encryption as OTP encryption

By: Stefan Claas on Sun, 24 Dec 2023

11Stefan Claas

rocksolid light 0.9.152
clearnet tor