Claude output matching copyrighted StackOverflow code
5 comments
Would you mind sharing the full conversation? I'm asking because there's not that much logic in this snippet, and I think that if your prompting was sufficiently specific, you could almost constrain it to give you something with this structure.
In 2025 IP and copyright don't play a role anymore ;)
Stackoverflow relevant comment: https://stackoverflow.com/questions/180947/base64-decode-snippet-in-c#comment137345692_13935718
Claude version:
std::string base64encode(const char* data, size_t length) { static const char* base64_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz" "0123456789+/";