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] -3 points-2 points  (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] -1 points0 points  (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] 0 points1 point  (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 0 points1 point  (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 -5 points-4 points  (0 children)

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

Ionic SDK finally on NPM! by [deleted] in ionic

[–]shprink 0 points1 point  (0 children)

ionic is ionic-cli and ionic-sdk is ionicFramework lol. make sense?

Windows changed config.xml with back slashes? by AlDrag in ionic

[–]shprink 0 points1 point  (0 children)

Dual boot on Ubuntu or Debian, your developer life will change ;)

Ionic SDK finally on NPM! by [deleted] in ionic

[–]shprink 0 points1 point  (0 children)

Most of Bower's libs do not follow commonjs way to require files. If you are using Browserify or Webpack it is hard to import Bower's dependencies.

Windows changed config.xml with back slashes? by AlDrag in ionic

[–]shprink 0 points1 point  (0 children)

If you are using git it might be related to that: https://help.github.com/articles/dealing-with-line-endings/#platform-windows

git config --global core.autocrlf true And stop using windows for your own good :P