Skip to main content
Develop Tools
← Return to usage guide

How to Share Source Code Safely

Whether you share code with an AI or a person, provide only what is necessary and remove sensitive information first. This language-agnostic guide covers steps that apply to any source code.

Process of cutting out the shared range, masking and checking before sending
Process of cutting out the shared range, masking and checking before sending

Reduce the sharing scope

Select only the files, functions, and configuration needed to explain the problem. Removing unrelated code reduces both the risk of disclosure and the review burden on the recipient.

If you can create reproducible code, prepare a minimal configuration that does not use production data and replaces it with fictitious names and values.

Points to note for each sharing destination

Sharing MethodWhat to Check
Public Issue or ForumAssume the post may remain searchable, and remove organization names and internal URLs
Internal chatCheck how long channel participants and history are kept
Email or External ContractorCheck recipients, attachments, and contractual sharing scope
Screen SharingPre-hide notifications, tab names, history, and file paths

Check before sending

  1. Make a shared copy and avoid editing the original file directly.
  2. Remove or mask credentials, personal information, organization-specific information, and real data.
  3. Full-text search for original project name, domain, and customer code.
  4. Confirm the recipients and visibility. If necessary, also specify an expiration date and deletion procedure.

Do not rely on automatic detection alone. The person sharing the content should perform a final read-through of the entire masked result.

Try It in Your Browser

Your input is processed entirely in your browser. Keep the original data, review the output, and only then save or share it.

Select a masking tool from supported languages