If you insist on doing partial redaction then reasonably simple approach would be to generate two keys and redact non-matching parts. But tbh it still is unnecessary risk
Of course the bit-by-bit assumption makes you reveal much more data than buye-by-byte or base64 characters but the point still stands.
If a user wants to rebuild the key in order to use it for something, then they must have a very good reason to do so, and it is probably better to just let them do that.