This
If its just to cross a border you can memorize it. Just make sure you really have it down. When you have arrived in a safe place, write it down again. Don't depend on your memory for longer periods of time.