Vencord icon indicating copy to clipboard operation
Vencord copied to clipboard

[Plugin] Encryptcord

Open Inbestigator opened this issue 11 months ago • 2 comments

(Resubmission after requested fixes)

Encryptcord allows you to have an end-to-end encrypted conversation with your friends.

Simple interface

Groups are joined/started by clicking the lock icon in your chatbar. image image

The system uses a 4096 bit RSA keypair to ensure that your messages are safe. The keys are regenerated after every restart.

Choose who you want to talk to

When a user joins the group, you can click I don't want to talk to you! to stop sending/receiving messages to/from them. image

Toggle between message modes

Once in a group you can click the lock icon to toggle between sending encrypted and unencrypted messages image image

Inbestigator avatar Mar 04 '24 02:03 Inbestigator

how do you even encrypt the messages?

Oi-jojo avatar Mar 04 '24 05:03 Oi-jojo

how do you even encrypt the messages?

export const encryptData = async (pemPublicKey, data) => {
    const publicKey = await importPemPublicKey(pemPublicKey);

    const chunkSize = 446;

    const encryptedChunks: any[] = [];
    const encoder = new TextEncoder();

    for (let i = 0; i < data.length; i += chunkSize) {
        const chunk = await data.substring(i, i + chunkSize);
        const encryptedChunk = await crypto.subtle.encrypt(
            {
                name: "RSA-OAEP",
            },
            publicKey,
            encoder.encode(chunk)
        );
        encryptedChunks.push(arrayBufferToBase64(encryptedChunk));
    }

    return encryptedChunks;
};

Inbestigator avatar Mar 04 '24 05:03 Inbestigator

i don't think this is a good idea to have... too niche, and if people want encryption, they should instead use something like matrix, xmpp, signal, etc. Having it on discord just makes little sense

you may still post it in the third party plugins channel if you'd like

and thank you for your work regardless!

Vendicated avatar May 15 '24 01:05 Vendicated

I fucking hate matrix and I'm addicted to discord and I also have to discuss government secrets - thank you for the plugin!

thecatontheceiling avatar May 31 '24 08:05 thecatontheceiling

I fucking hate matrix and I'm addicted to discord and I also have to discuss government secrets - thank you for the plugin!

<:husk:1026532993923293184>

programminglaboratorys avatar May 31 '24 10:05 programminglaboratorys

i really like the idea but genuinely have no idea how to download this

TazeXL avatar Jul 30 '24 21:07 TazeXL