here is the basic algoritm for encrytping the password:
convert characters to integer
convert integers to hexadecimal
take the first character, add 2 to it and move it to a new array
take the third character, add 4 to it and move it to the other array
take the fifth character, add 6 to it and move it to the other array
..when reached to the end, there is still chars left:
take the first character, add 2 to it and move it to the other array
take the second character, add 5 to it and move it to the other array
take the third character, add 8 to it and move it to the other array
then reverse the new array and convert to string
I think it should keep the pass at least somehow undetectable
ps. you can also add some random integers to the end of the new array to make it bigger
ps2. characters can be 0-255 so if the number reaches to the 255, it should continue from 0