I am trying to encrypt a password in a program. Here is the process:
Let us assume that I have a string $p$ ($n$ characters long) which contains the password. Now the program reverse the string and stores it in string $r$. After that it takes each character of $p$ and $r$ applies the XOR operator and stores it in string $e$.
Next time the user want to access the file he/she will be asked to enter the password. The entered password will go through the process explained above and will be compared to string $e$. If both are not equal access will be denied.
I want to know the number of combinations of it will take a computer to brute force the password ("just to show if the encryption is mathematically effective or not, during the presentation"). Thanks
BAT
(42h 41h 54h), the passwordred
(72h 65h 64h) will work just as well. 2) People choose easy to remember passwords, and that can be used to reduce the number of combinations it will take a computer to brute force the password. 3) If the string comparison is per the standard operator of most languages, a timing attack might make brute force linear with the number of characters, rather than exponential, even assuming random choice of password. $\endgroup$