Framework for managing passwords and other secrets