Fix single quotes by making them double quotes
Generate the shared key upfront
Fix key generation
Make Box Encodable to bytes