In a mixing bowl, blend the sugar with cornstarch. Incorporate the eggs and whisk until smooth and uniform. Set aside.
Warm the milk and salt in a medium saucepan over medium-high heat, stirring occasionally until just below boiling.
Gradually add about a third of the hot milk to the egg mixture, whisking constantly to temper. Pour the tempered egg mixture back into the pan with the remaining milk and return to heat.
Whisk briskly and continuously. As bubbles fade and the mixture begins to thicken, continue stirring until it reaches a boil. Allow it to bubble for 30 seconds, then remove from heat.
Immediately strain the custard through a fine mesh sieve into a prepared bowl. Stir with a whisk or spatula to aid in passing through.
Let the pastry cream cool to about 140°F. Begin incorporating the butter one piece at a time, ensuring each is fully blended before adding the next. Stir in the vanilla.
Place plastic wrap directly against the surface of the custard and refrigerate for a minimum of 3 hours.