#include #include "./crypt.h" main(){ char *password; char *enc_passwd; // Test pass for user1 password="rrrrrrrr"; if(strcmp(enc_passwd=crypt(password, "AY"), "AYyjN.wDnZKuc") == 0) printf ("success for %s - %s\n", password, enc_passwd); // Test pass for user2 password="user2"; if(strcmp(enc_passwd=crypt(password, "SY"), "SY6q9CPVIMvBA") == 0) printf ("success for %s - %s\n", password, enc_passwd); // Test pass for user3 password="susurrrr"; if(strcmp(enc_passwd=crypt(password, "AC"), "ACddbbOWWswzU") == 0) printf ("success for %s - %s\n", password, enc_passwd); // Test pass for user4 password="susurrrr"; if(strcmp(enc_passwd=crypt(password, "KC"), "KChZuswj7Gd8Y") == 0) printf ("success for %s - %s\n", password, enc_passwd); // Test pass for user5 password="computer"; if(strcmp(enc_passwd=crypt(password, "6d"), "6dL/LiLR/7KLs") == 0) printf ("success for %s - %s\n", password, enc_passwd); }