Loading ...
Sorry, an error occurred while loading the content.
 

crypt key viewing (bug?)

Expand Messages
  • Dr. Charles E. Campbell
    Hello! I just decided to try out the crypt stuff; I note that the document says Since the value of the key option is supposed to be a secret, its value can
    Message 1 of 2 , Sep 5 7:28 AM
      Hello!

      I just decided to try out the crypt stuff; I note that the document says

      "Since the value of the 'key' option is supposed to be a secret, its value can
      never be viewed."

      However, :set key shows the key value quite clearly, both the first time it
      gets set and the file written and subsequently after the file is decrypted and
      read back in.

      Is this a bug?

      Regards,
      C Campbell

      --
      Charles E Campbell, Jr, PhD _ __ __
      Goddard Space Flight Center / /_/\_\_/ /
      cec@... /_/ \/_//_/
      PGP public key: http://www.erols.com/astronaut/pgp.html/
    • Sung-Hyun Nam
      ... I think bram enjoy holiday. So, I made a patch. Was very simple. regards, namsh ... +++ option.c 2000/09/05 14:46:35 @@ -6644,7 +6644,7 @@ NameBuff[0] =
      Message 2 of 2 , Sep 5 7:50 AM
        Dr. Charles E. Campbell wrote:
        > Hello!
        >
        > I just decided to try out the crypt stuff; I note that the document says
        >
        > "Since the value of the 'key' option is supposed to be a secret, its
        > value can never be viewed."
        >
        > However, :set key shows the key value quite clearly, both the first
        > time it gets set and the file written and subsequently after the file
        > is decrypted and read back in.

        I think bram enjoy holiday.
        So, I made a patch. Was very simple.

        regards,

        namsh

        --- option.c 2000/09/01 01:27:20 1.1.1.1
        +++ option.c 2000/09/05 14:46:35
        @@ -6644,7 +6644,7 @@
        NameBuff[0] = NUL;
        #ifdef FEAT_CRYPT
        /* don't show the actual value of 'key', only that it's set */
        - if (opp->var == (char_u *)PV_KEY && *varp)
        + if (opp->var == (char_u *)&p_key && *varp)
        STRCPY(NameBuff, "*****");
        #endif
        else if (opp->flags & P_EXPAND)
      Your message has been successfully submitted and would be delivered to recipients shortly.