I do some stuff that encapsulate calls to various systems
(os api, erp queries,  databases access) and if the results
are no secret some passwords used internally are. How to
solve the issue?

example: one program to create a Windows  AD user 
and use internally higher credentials...(runas..)

You may ask how is it protected now? 
Certainly not perfectly but it is in the compiled versions
and kids under 3 will not set a breakpoint. 

regards

DD