We have to inject dynamic javascript (contains a encrypted var value) into all web pages. 

What is the best way to inject Dynamic Javascript using Master Page? 

Other Details:

* SharePoint 2010 STD
* Master Page changes are allowed
* Internal Application
* Injected var value will be used to make ajax calls