Hacker News new | ask | show | jobs
by twright0 1162 days ago
What gives you confidence its explanations are accurate?

> write and explain me more optimised algorithms for certain cryptographic operations

This domain in particular strikes me as a poor choice for this approach. "Don't roll your own crypto... but definitely don't let a language model roll it for you, either"

1 comments

Well it gives me a direction to dig in - often papers use inscrutable notation or seemingly magical variables that I’m not sure where they come from. Will ChatGPT always be right? Probably not - but these are things I can validate better than no info at all!

Re: crypto algorithms, the quert in question was implementing exponentiation for arbitrary sized integers. My own implementation was taking until the heat death of the universe to finish for big integers and I didn’t want to just copypasta an impl from elsewhere.

ChatGPT‘s worked flawlessly and it was able to explain me certain tricks it used in depth (which I could independently verify from other sources).

Would I ship it to prod? Not without a security audit, but that ought to be the case regardless when rolling your own (or even someone else‘s) cryptography :)