Unix based OSes like Linux maintain user password in /etc/shadow file in encrypted algorithm basically in hash method.