src/encrypt.c
// Prompts the user for a public key and plaintext to be encrypted and then
// encrypts that plaintext using the public key.
Prompts the user for a public key and plaintext to be encrypted and then
encrypts that plaintext using the public key.
Prompts the user for a public key and plaintext to be encrypted and then encrypts that plaintext using the public key .
void encrypt() {
  printf("Enter Public Key: ");
  scanf("%lx", &key);
  printf("Enter message to encrypt: ");
  c = getchar();
  while ((c = getchar()) != 10) {
    printf("%lx ",(c*c*c) % key);
  }
  printf("\n");
}
void encrypt ( ) { printf ( " " ) ; scanf ( " " , & key ) ; printf ( " " ) ; c = getchar ( ) ; while ( ( c = getchar ( ) ) != 10 ) { printf ( " " , ( c * c * c ) % key ) ; } printf ( " \n " ) ; }
Prompts the user for a public key and plaintext to be encrypted and then
encrypts that plaintext using the public key.
Prompts the user for a public key and plaintext to be encrypted and then encrypts that plaintext using the public key .