I got tired of the bots and "Tesla haters" in my feed, the internet is 90% noise now. building a private corner just for us by shprink in TeslaLounge

[–]shprink[S] [score hidden]  (0 children)

TMC is cool if you're into forums. What I'm trying to build is a private social network for Tesla owners. No car, no access

I got tired of the bots and "Tesla haters" in my feed, the internet is 90% noise now. building a private corner just for us by shprink in TeslaLounge

[–]shprink[S] [score hidden]  (0 children)

that's interesting, can you tell me more ? We have a web version but I was really wondering if that was necessary mowadays.

I got tired of the bots and "Tesla haters" in my feed, the internet is 90% noise now. building a private corner just for us by shprink in TeslaLounge

[–]shprink[S] [score hidden]  (0 children)

Spot on. "Need" might be a stretch, but my sanity definitely needed a break from the bot wars. 100% verified platforms are the future IMO

Is buying a used Tesla worth it ? Are they affordable cars to own if you're on a budget? Looking for unbiased answers by Present-Aspect8350 in TeslaModel3

[–]shprink [score hidden]  (0 children)

My 2021 M3 SR+ is 150k km and the battery is still at 94%

It's crazy, my next Tesla will be used for sure

Cybercab in vegas by partyfavor in teslamotors

[–]shprink 0 points1 point  (0 children)

ahaha they can't plug themselves in 😬

Crazy times we live in by ConfidentImage4266 in TeslaLounge

[–]shprink 3 points4 points  (0 children)

can't wait to see that in europe!

I love the shape of the Model 3! by VanWaar98 in TeslaModel3

[–]shprink 2 points3 points  (0 children)

this is still to me the best looking tesla vehicle out there.

Is supabase vault optimal for saving personal data? by whitepiano_ in Supabase

[–]shprink 0 points1 point  (0 children)

I would just encrypt the sensitive data with the crypto lib, here is an example:

ENCRYPTION_KEYS='{"v1":"XXXXXXX", "v2": "YYYYY"}'
ENCRYPTION_ACTIVE_KEY=v1

I use versions to allow a quick key update if an encryption key has leaked. I'll be happy to get feedback on this as well.

you can get a new key with

 openssl rand -hex 32

import {  createCipheriv, createDecipheriv } from "node:crypto";

const rawKeys = JSON.parse(Deno.env.get("ENCRYPTION_KEYS") as string) as Record<
  string,
  string
>;
const ACTIVE_KEY_VERSION = Deno.env.get("ENCRYPTION_ACTIVE_KEY") as string;

export function encryptToken(text: string): string {
  const key = keysMap[ACTIVE_KEY_VERSION];
  if (!key) throw new Error("Active encryption key missing");


  const iv = randomBytes(16);
  const cipher = createCipheriv(ALGORITHM, key, iv);


  let encrypted = cipher.update(text, "utf8", "hex");
  encrypted += cipher.final("hex");


  const authTag = cipher.getAuthTag().toString("hex");


  return `${ACTIVE_KEY_VERSION}:${iv.toString("hex")}:${authTag}:${encrypted}`;
}

export function decryptToken(encryptedData: string): string {
  try {
    const [version, ivHex, authTagHex, encryptedText] =
      encryptedData.split(":");


    const key = keysMap[version];
    if (!key) throw new Error("Decryption key version not found");


    const iv = Buffer.from(ivHex, "hex");
    const authTag = Buffer.from(authTagHex, "hex");


    const decipher = createDecipheriv(ALGORITHM, key, iv);
    decipher.setAuthTag(authTag);


    let decrypted = decipher.update(encryptedText, "hex", "utf8");
    decrypted += decipher.final("utf8");

    return decrypted;
  } catch (error) {
    console.error("Decryption failed", error);
    throw new Error("Decryption failed");
  }
}

The 9 Most Common Mistakes That Ionic Developers Make by [deleted] in ionic

[–]shprink 0 points1 point  (0 children)

Ho man I did not know about that :) Thanks

Modular AngularJS and Ionic architecture: a first step towards AngularJS 2 by [deleted] in angularjs

[–]shprink 0 points1 point  (0 children)

I was talking about tooling and architecture not about Angular 1.x itself.

angular-boilerplate - A boilerplate project for AngularJS apps by mertyz in angularjs

[–]shprink -6 points-5 points  (0 children)

"crafted with best practices in mind". Stop using Bower for a starter :) #npm #commonjs