saltstack/salt — pull request #7573 by whiteinge (2013-10-03 00:21:05+00:00)
Title: Added function to generate a password or key and store in local grains

It would be nice to have something similar in Pillar but I'm not sure how to approach that without an analog to the stand-alone grains file.