RC4-based password hashing function