Password hash

there’s a way to encript a plain password to your kind of hash in the database with php ?

and to upload a photo with php and transform in text and then insert into database ?

i need this functions (features) more than anything

excuse my bad english