#include <des.h>
#include <stdio.h>

main()
{
  des_cblock key;
  int count;
  unsigned char x[8];
  char key_string[BUFSIZ];

  des_read_pw_string(key_string, sizeof(key_string),
		     "Enter the password to be converted: ", 0);


  /*
   * Comment one of these.  Right now it is going to use the MIT
   * string-to-key, and the AFS string-to-key is commented out.
   */
  /* ka_StringToKey(key_string, "andrew.cmu.edu", key); */
  des_string_to_key(key_string, key);

  strcpy(x,(char *)key);
  for(count=0;count<8;count++) {
    printf("\\%03o",x[count]);
  }

  printf("\n");
  exit(0);
}
