porsager / postgres

Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare
The Unlicense
7.26k stars 262 forks source link

Update Cloudflare createHash polyfill to support md5 and hex encoding #694

Closed a-robinson closed 10 months ago

a-robinson commented 11 months ago

Since the md5 method in cf/src/connection.js expects to be able to call crypto.createHash('md5').update(x).digest('hex')

This was causing md5 password auth to hang when used from a Cloudflare worker, but now I've confirmed md5 password auth works.

porsager commented 10 months ago

Thanks a lot @a-robinson !