// Salting = find the salted form of a password entered by user if the salt is
// "123" & added at end.
#include<stdio.h>
#include<string.h>
void salting(char password[]);
int main(){
char password[100];
scanf("%s",password);
salting(password);
}
void salting(char password[]){
char salt[]="123";
char newPass[200];
strcpy(newPass, password); //newPass
strcat(newPass, salt);
printf("Password + Salt : ");
puts(newPass);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: