Generating a symmetric encryption key