Added support for encoding and decoding a secret from generated addresses.