TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

GPT-3 used to explain an arbitrary piece of code

7 pointsby gajusover 2 years ago

2 comments

Sohcahtoa82over 2 years ago
I was playing with GPT-3 last night and discovered it can do Base64 encoding. I asked for `encode the string &quot;&lt;string&gt;&quot; using Base64` and sure enough, I got the correct Base64 in the result.<p>I then tried asking for a bcrypt hash, but that didn&#x27;t work. It generated the $2a$10$ prefix, but everything after that was wrong, as it thought the hash ended in &quot;&#x2F;9&#x2F;9&#x2F;9&#x2F;9&#x2F;9&#x2F;9&#x2F;9&#x2F;9&quot;.<p>What got really interesting was prompting it with `AWS_ACCESS_KEY = &quot;`. I got several sets of credentials, though none of them worked. It&#x27;s possible that the strings generated never were valid credentials, though the format was correct.
评论 #32566720 未加载
评论 #32566521 未加载
JLCarvethover 2 years ago
The fact that it&#x27;s going as far as &quot;guessing&quot; what the UUID library function would output without any context is seriously impressive.