401 (Unauthorized) [SOLVED]

Yes My PHP scripts is used to reply to the OPTIONS request

I am not getting exactly what you are saying @Sujan12 and @rapropos

How can i solve the issue

By using a hash function designed for this purpose, such as bcrypt.