update the hash function of getFriendlist
 from PIL import Image
 save username password in file "user"