Anonymize artist identifiers via hashing and remove copyrighted text to comply with Huggingface's request

#67
by Saverign - opened

Deleted (see Changed for replacement)

  • usernames.txt 790k
  • In catalog.db title (text) β€” removed, replaced by title_len; content (text) β€” removed, replaced by content_len; bio (text) β€” removed, replaced by bio_len
  • In catalog.db author_slug (text) β€” removed; author_name (text) β€” removed; author_id (text) β€” removed; all three replaced by single salted_hash

Changes for catalog.db

Before After
author_slug + author_name + author_id (example_slug / ExampleArtist / 00000000-0000-0000-0000-000000000000) salted_hash 16 hex e.g. ab39ba031b36f554
title Example Title title_len 13
content Example content text ... content_len 248
bio Example bio ❀️ bio_len 130

Added: follower_counter following_counter (for every user), images table including: post_id, ord, cdn_url, is_cover, is_ai_auto_flagged, width, height 8.5M slides, plus kept raw_tags, status_code, is_deleted, softwares, tags.

salted_hash is SHA256(slug + secret constant salt) truncated to 16 hex. Same artist β†’ same hash. It is impossible to obtain user information from salted hash.

Source: Saverign/CaraArchive:salted-hash 9c3f38d catalog.db 4.8G artworks 3,431,475 post 3,431,474 images 8,521,351.

Saverign changed pull request title from Anonymize artist identifiers and remove copyrighted text and comply with Huggingface's request to Anonymize artist identifiers via hashing and remove copyrighted text and comply with Huggingface's request
Saverign changed pull request title from Anonymize artist identifiers via hashing and remove copyrighted text and comply with Huggingface's request to Anonymize artist identifiers via hashing and remove copyrighted text to comply with Huggingface's request

This PR does not update the README, the maintainer will need to update it.

using salted usernames instead of plaintext is smart.
but, i dont think we have to remove title/content ?

title maybe not, content can probably be copyrighted

lets talk on discord, username is saverign

Get this confirmed by HF staff as well.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment