Generate a secure random key for the application using the new Str class