4 ms·
GPT-3 used to explain an arbitrary piece of code
- JLCarveth 4y agoThe fact that it's going as far as "guessing" what the UUID library function would output without any context is seriously impressive.
- Sohcahtoa82 4y agoI was playing with GPT-3 last night and discovered it can do Base64 encoding. I asked for `encode the string "<string>" using Base64` and sure enough, I got the correct Base64 in the result. I then tried asking for a bcrypt hash, but that didn't work. It generated the $2a$10$ prefix, but everything after that was wrong, as it thought the hash ended in "/9/9/9/9/9/9/9/9". What got really interesting was prompting it with `AWS_ACCESS_KEY = "`. I got several sets of credentials, though none of them worked. It's possible that the strings generated never were valid credentials, though the format was correct.