postgresql password encryption whether to use crypt or not : I have gone through postgresql crypt() function documentation .

 This function is provided as extension for postgresql . 

If i migrate my data to another database will the passwords still be evaluated properly or not ?. 
using same encryption algorithms. crypt function stores the salt in the encrypted sting itself 