1. Start by asking ChatGPT what are the high level primitives you need 2. Read the amazing libsodium docs for the corresponding function 3. If needed, see sample code. eg. here are realistic examples for Javascript: Flutter: