How to get the hashed value of a new password when user changes his password using after_save logic hook?

Hello everyone, I am using SugarCRM CE 6.5.X version. I want to use the hashed value of the new password of a user, when user changes his password using after_save logic hook. I used $bean and get_all_vars(), but no help. I got new password in a plain text format, but not in a hashed format. I even used database query to retrieve password from database, but it fetches old password. Please guide me soon on this.