From: tomas@tuxteam.de
To: help-gnu-emacs@gnu.org
Subject: Re: Let us see how to encrypt with Emacs?
Date: Fri, 9 Jul 2021 14:43:14 +0200 [thread overview]
Message-ID: <20210709124314.GA17119@tuxteam.de> (raw)
In-Reply-To: <YOhCibYJxLUk/ZFP@protected.localdomain>
[-- Attachment #1: Type: text/plain, Size: 774 bytes --]
On Fri, Jul 09, 2021 at 03:35:21PM +0300, Jean Louis wrote:
> * tomas@tuxteam.de <tomas@tuxteam.de> [2021-07-09 14:53]:
[...]
> > - see the `ceiling' function [...]
> Thanks, now I know for that:
>
> (defun pad-to-multiple-bytes (string length)
> "Return string padded to multiple of MAX bytes."
> (let* ((bytes (string-bytes string))
> (multiple (* (ceiling bytes length) length)))
> (string-pad string multiple)))
>
> > I'm not sure you want to encrypt a zero bytes string at all, but
> > this might get philosophical)
>
> There may be problems which I will never encounter practically. I know.
:-)
>
> > MAX is an unfortunate variable name for that.
>
> Now is length.
Not yet in the comment, though ;-)
Cheers
- t
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2021-07-09 12:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-09 7:38 Let us see how to encrypt with Emacs? Jean Louis
2021-07-09 10:39 ` Eli Zaretskii
2021-07-09 11:32 ` Jean Louis
2021-07-09 11:52 ` tomas
2021-07-09 12:35 ` Jean Louis
2021-07-09 12:43 ` tomas [this message]
2021-07-09 11:55 ` Eli Zaretskii
2021-07-09 12:28 ` Jean Louis
2021-07-09 12:53 ` Eli Zaretskii
2021-07-09 12:27 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210709124314.GA17119@tuxteam.de \
--to=tomas@tuxteam.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.