[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Let us see how to encrypt with Emacs?
From: |
Eli Zaretskii |
Subject: |
Re: Let us see how to encrypt with Emacs? |
Date: |
Fri, 09 Jul 2021 14:55:07 +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.
Re: Let us see how to encrypt with Emacs?, Jean Louis, 2021/07/09