Hybrid password

Hello guys password in my code must escape the hacker.I tried to do something with swap but I couldn't make the loop.Could you help please


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>

void swap(int *value,int*Hybridized_Password){
	int swap_operand =*value;
	*value =*Hybridized_Password;
	*Hybridized_Password = swap_operand;
}
int main()
{
	int a=1111
	int password[4] ={9999};
	printf("\nBefore Swapping Hybridization:a=%d & password[0]=%d\n",a,password[0]);
	
	swap(%a,&password[0]); // a and default password go swap function
	
printf("\nAfter Swapping Hybridization:a=%d &password[0]=%d\n",a, password[0]);
}
Last edited on
did you mean swap(&a
do you understand what {9999} did?
you have an array with {9999,0,0,0} is this your intent?
are you trying to swap digits? its really unclear.
Last edited on

the letters will escape to the farthest values ​​with ascii code.
Example my password abcd.For example my password is ABCD. if the hacker approaches my password, thanks to ascii code will be missed Will be 9876

Topic archived. No new replies allowed.