base64 and nonce patches

Includes jhk753's `Base64` fix and also an update to the `nonce` method (best practice is not to base nonce values off of timestamps).