Add function to extract salt from vault file.
Copy salt instead of using the salt slice directly.