Support padded base64 digests

Code expecting pluggable digest functions benefits from being able to
get padded base64 without writing the simple but not packaged

    $digest .= '=' while length($digest) % 4;