Deutsch English Français Italiano |
<v0om6r$2juq5$1@i2pn2.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: Stefan Claas <pollux@tilde.club> Newsgroups: sci.crypt Subject: Re: base26 Encoder/Decoder Date: Mon, 29 Apr 2024 19:42:50 +0200 Organization: i2pn2 (i2pn.org) Message-ID: <v0om6r$2juq5$1@i2pn2.org> References: <uoekm1$3rhsc$1@i2pn2.org> <g74JN.751237$mUo.609280@fx08.ams4> <v0dtc5$276id$1@i2pn2.org> <v0dup1$276id$2@i2pn2.org> <7P6XN.610386$oD2.194358@fx11.ams4> <v0j5oi$2ddq4$1@i2pn2.org> <oknXN.41708$XrN3.19814@fx01.ams4> <v0l0e2$2ff66$1@i2pn2.org> <v0l9lf$10knh$1@dont-email.me> <v0lc45$2ft6v$1@i2pn2.org> <v0lgs1$125o7$1@dont-email.me> <v0lo29$2gbvu$1@i2pn2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Mon, 29 Apr 2024 17:42:52 -0000 (UTC) Injection-Info: i2pn2.org; logging-data="2751301"; mail-complaints-to="usenet@i2pn2.org"; posting-account="uWi4uQdALkj7ETOfPbhNXfz0+Ra/gM5z6/Fa40dJi9U"; Finger: tilde.club/~pollux/ X-Spam-Checker-Version: SpamAssassin 4.0.0 Bytes: 2339 Lines: 50 Stefan Claas wrote: > Herbert Kleebauer wrote: > > > If you only can use A-Z as transferable digits, you can > > use an alternative to the standard hex encoding: > > > > 0 A or Q > > 1 B or R > > 2 C or S > > 3 D or T > > 4 E or U > > 5 F or V > > 6 G or W > > 7 H or X > > 8 I or Y > > 9 J or Z > > 10 K > > 11 L > > 12 M > > 13 N > > 14 O > > 15 P > > > > Because there are two ways to encode 0-9, you > > can use this to send a second data stream. If > > A-J is used a 0 bit transferred and if Q-Z is used > > a 1 bit is transferred on this second channel. You > > can use this for example for a check sum or an > > error correcting code. > > Would this be the correct output for A-Z encoding? > > $ echo -n 'sci.crypt is cool! :-)' | ./az > XDGTWJCOWDHSXJHQXECQWJHTSAGTWPGPWMCRSADKSNCZ > > $ echo -n 'sci.crypt is cool! :-)' | base16 > 7363692e637279707420697320636f6f6c21203a2d29 I would say yes, because the table matches the hex values and the encoder/decoder is also fast enough to handle 1 GB of data, for example. Well, a new tool to play with, thanks to Herbert's suggestion. :-) -- Regards Stefan