get key and salt from file