Allow user-specified G values for encryption keys

There is no real reason to use other generator (G) values than the previously hardcoded default ones (4, 41, 73), but some shards (notably Minkata) do.