Skip to content

Encryption for Discord messages and files, made in JavaScript

Notifications You must be signed in to change notification settings

FTG2085/postnutclarity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

PostNutClarity

PostNutClarity (PNC) is a JavaScript utility that provides encryption and decryption functionalities for text messages and binary files shared in a web application. It automatically encrypts outgoing messages and files, decrypts incoming messages, and offers a user-friendly interface for file uploads with encryption.

Features

  • Automatic message encryption and decryption
  • [BETA] File encryption with automatic file decryption
  • Simple GUI to toggle encryption/decryption

Screenshots

With PNC:
imagea
Without PNC:
image

Encrypted image with PNC:
image
Encrypted file with PNC:
image
Encrypted image/file without PNC:
image

How to Run

DevTools method

  1. Open up DevTools using CTRL+SHIFT+I on https://discord.com/app (or the Discord app if you have it enabled)
  2. Open the "Console" tab
  3. Open pnc.js and copy the code
  4. Paste the code into your console, and PNC should be enabled!

    Note: As of now, you have to run this code every single time you open Discord

How It Works

  • Message Encryption/Decryption: Messages are encrypted before being sent and decrypted upon being received.
  • File Encryption/Decryption: Files are encrypted before being uploaded and decrypted upon being displayed or downloaded.
  • MutationObserver: Observes the DOM for changes and decrypts new content as it appears.
  • XHR Interception: Intercepts outgoing XMLHttpRequest (XHR) requests to encrypt message content.