Changed the digest to base64 coded form since that is apparently the correct way.