Are you going to print a paper key, put it into waterproof capsule and eat it?
Instead you could just open a bank account in a foreign bank, and they will always allow you access to your money
Even assuming the foreign bank would not “just” refuse you for not being a resident, or being a significant risk, or not accepting your identification, or whatever. Then your Lebanese bank would surely wire the money there without any issues, and your Lebanese employer would be happy to do so as well, and of course there are no laws stating that only liras are legal payment currency for services rendered in Lebanon.
I have a few friends who worked in China and the default is you immediately move any money out of the country as soon as you can. It's simple to bring it in, but getting it out can range from "here are 5 forms to fill out" to "sorry, we aren't processing transfers at this time".