ongres/scram ? reverse-engineered prompt

Reverse engineered prompt

Build me a Java library for SCRAM authentication, the kind used with PostgreSQL and other SASL based systems. I want it to follow the SCRAM rules from RFC 5802 and RFC 7677, and support both SCRAM SHA 1 and SCRAM SHA 256, including the plus versions when channel binding is available. Make it easy for someone to create a client with a username, password, advertised mechanisms, and optional channel binding data, then walk through the client first, server first, client final, and server final messages.

Keep it clean and well tested, with a small number of dependencies. If you need to check the latest docs or behavior for edge cases, look them up online. The result should feel like a solid reusable Java package, not a demo, and it should be simple enough that someone can drop it into a project and use it for authentication without much extra work.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab