encrypt a message

From: rockwell (rockwell_001_at_yahoo.com)
Date: 07/22/04

  • Next message: Bill Unruh: "Re: why is the nobody account password-protected?"
    Date: 22 Jul 2004 09:45:12 -0700
    
    

    HI groups i am trying to encrypt a message or rather a password and
    then check if it is properly decrypted or not,my program looks like

    #include <stdio.h>
    #include <time.h>
    #include <unistd.h>
    #include "/usr/include/crypt.h"

    int main(void)
    {
     char key[64]="10111010";
     char txt[64]="mytextstring";
     setkey(key);
     
     encrypt(txt, 0);
     encrypt(txt, 1);
     return 0;
    }

    i want to test whether my txt string is properly encrypted ot not.Can
    i append the encrypted string into a file and then decrypt it back
    into a file and check if it is the same.If so how may i know it.Can u
    please tell me about this.if this is not the proper group can u
    suggest me the proper group.

    Thanks in advance and bye.


  • Next message: Bill Unruh: "Re: why is the nobody account password-protected?"

    Relevant Pages

    • Re: Encrypting one line
      ... > line (string) before writing it to the file. ... logging system you don't want to mess with, ... The proper solution is most likely to encrypt the entire log file; ...
      (borland.public.delphi.language.objectpascal)
    • OWA 2003, S/MIME, 3rd party certificates
      ... What's the proper way to enable OWA 2003 support of 3rd party certificates ... A digital ID that allows you to encrypt this messages is missing. ...
      (microsoft.public.exchange.clients)
    • Re: autoconf / automake problem
      ... > Using -lpthread directly is not the proper way. ... You should compile ... GPG Public Key: 0x25BFB848. ... Please sign and encrypt your mail. ...
      (comp.os.linux.development.apps)
    • Re: WAV file question
      ... >> matches the endianness of the file. ... > couldn't read a .wav file properly? ... The Google Groups interface makes proper followups needlessly ... by fwriteing, say, an int value, then copy the file to a big-endian ...
      (comp.lang.c)
    • Juju
      ... I only looked briefly at SBP-2, and at submit/callback paths it pulled, ... please implement proper ORB cancellation. ... int function, int lun, void *response) ...
      (Linux-Kernel)