all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Let us see how to encrypt with Emacs?
Date: Fri, 09 Jul 2021 14:55:07 +0300	[thread overview]
Message-ID: <83im1jd7ms.fsf@gnu.org> (raw)
In-Reply-To: <YOgzunqpaoYHLdoA@protected.localdomain> (message from Jean Louis on Fri, 9 Jul 2021 14:32:10 +0300)

> Date: Fri, 9 Jul 2021 14:32:10 +0300
> From: Jean Louis <bugs@gnu.support>
> Cc: help-gnu-emacs@gnu.org
> 
> > > ‘STRING’
> > >      A string as input will be used directly.  It may be modified by the
> > >      function (unlike most other Emacs Lisp functions) to reduce the
> > > chance of exposing sensitive data after the function does its work.
> > > 
> > > I am trying to use list with STRING as following and that does not work:
> > > 
> > > (gnutls-symmetric-encrypt "CHACHA20-64" (string-pad "MyPassword987" 32) (make-string 16 (random 100)) '(STRING "Text to encrypt"))
> > 
> > What do you mean by "does not work"?
> 
> I get invalid object argument: STRING so I do not understand how to use STRING there.

You are misinterpreting what the manual shows.  STRING in upper-case
is a meta-syntactic variable, it means in actual usage you need to
_replace_ it with a Lisp string.  So just use "Text to encrypt",
without the rest.



  parent reply	other threads:[~2021-07-09 11:55 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
2021-07-09 11:55     ` Eli Zaretskii [this message]
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=83im1jd7ms.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.