Advertisement
tolfasn

Encryption

Feb 15th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.    int securityCode;
  7.    int encrypted[5];
  8.  
  9.    printf("Please enter your 4 digit personnel number: \n");
  10.    scanf("%d", &securityCode);
  11.  
  12.    sscanf(securityCode, "%d", encrypted);
  13.    
  14.    for (int j; j < 5; i++){
  15.     encrypted[i] = i + 7 %10;
  16.    }
  17.    
  18.  
  19.    for (int i; i < 5; i++){
  20.     encrypted[i] = i + 7 %10;
  21.    }
  22.  
  23.    printf("Your securityCode is %d\n", encrypted);
  24.    
  25.    return(0);
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement