Module: get_passphrase_from_file.lua
Author: Matthew Nicholson
Included in monotone: yes

This is an implementation of the monotone lua hook get_passphrase() that reads passphrases from the file passphrases in the configuration directory. This is useful for automate startup of servers, for example.

The format of passphrases is a series of lines, where each line contains a key followed by its passphrase, as follows:

key@domain.tld "passphrase here"

of

keyhash "passphrase here"