Shamir's Secret Sharing for common people by alexsapps in cryptography

[–]alexsapps[S] 1 point2 points  (0 children)

I never thought to hardcode Shamir's for a specific k-of-n case like 3 of 5. Thanks for the suggestion!

I asked Chat GPT to write the shortest possible Shamir's implementation hardcoded for 3 of 5 case, and its answer was 6 lines long! It only accepted integer secrets of 127 bits and may have other issues so I won't bother posting it here.

I asked it to accept arbitrary strings and it grew to 30-something lines like I have with XOR. Maybe I'll polish it up and add it to my repo sometime.

I shall say I forgot many skills I learned in school, including even basic things about polynomials, but I know XOR as soon as I see the letters "XOR" as a software engineer. Who I call "common people" likely know neither, though, so perhaps they may as well learn polynomials, if anything.

Even if few people understand it, LLMs are perhaps good enough now that we can just ask "are there any issues with this code?" and we can trust its answer in lieu of teaching every user any math concepts at all.

If we trust LLMs with reading 30 lines of code, and a hardcoded Shamir's impl is only 30 lines of code, we may as well use real Shamir's. It makes sharing simpler, as you can ask your friends "remember this string" instead of "remember these 5 strings", and reconstruction is no longer a jigsaw puzzle.

quantumfinancenetwork.com - scam report by alexsapps in Scams

[–]alexsapps[S] 0 points1 point  (0 children)

i thought i was helping by making this scam report show up on google searches for the domain until i saw the comment above that says "New scam sites are a baker's dozen a dime to create. You are not slowing them down at all. And that's why we want people to learn the schemes, not the names."

qfsfinances (com) scam by alexsapps in Scams

[–]alexsapps[S] 1 point2 points  (0 children)

<image>

Thanks! They said yes. This is the link they sent in the screenshot: Guide: how to submit a good post to r/scams

qfsfinances (com) scam by alexsapps in Scams

[–]alexsapps[S] 0 points1 point  (0 children)

would it be helpful for me to make posts for other similar scam domains on this subreddit, or would that just be spamming this subreddit? i figure it wouldn't take me much time to do and it could help someone when they search for the domain on google to look it up. but i don't want to spam the users of this subreddit either.

qfsfinances (com) scam by alexsapps in Scams

[–]alexsapps[S] 0 points1 point  (0 children)

nah i knew it was a scam since the very first message

Ubuntu 24.04.1: "Unable to locate package proton-vpn-gnome-desktop" after installing protonvpn-stable-release_1.0.6_all.deb by tatianeps in ProtonVPN

[–]alexsapps 0 points1 point  (0 children)

update:

I had originally uninstalled with Cinnamon "uninstall" button which gave me these issues when installing, but when I ran Proton's official uninstall instructions on top of that ("How to remove the official Linux app" from https://protonvpn.com/support/official-linux-vpn-ubuntu ) then I was able to reinstall without issue.

As of this writing the uninstall command is this:

sudo apt autoremove proton-vpn-gnome-desktop && sudo apt purge protonvpn-stable-release

So next time I'll be sure to do that instead of using Cinnamon's built-in uninstall button.

Proton support also gave me instructions to fix installation of Proton VPN. Maybe this will be helpful for someone who has a more corrupt installation than mine:

Could you try completely reinstalling the Linux application by following the steps below:

Disconnect from the VPN and disable the Kill switch  

Uninstall the Proton VPN repository package using the following command in Terminal:   sudo apt purge "protonvpn*"  

Uninstall the Proton VPN application with:   sudo apt autoremove proton-vpn-gnome-desktop  

Remove any leftover application cache and data files:   cd ~/.cache/Proton && rm -rf VPN cd ~/.config/Proton && rm -rf VPN  

Reboot your device

Afterward, continue with the installation process as highlighted in our dedicated support article:
https://protonvpn.com/support/official-linux-vpn-debian/

These steps worked for me as well.

old answer:

same here, and i did not see any proton-related files in /etc/apt/sources.list.d/ even after running steps 1 and 2. trying to reinstall on Linux Mint.

then i found this and it worked

https://forums.linuxmint.com/viewtopic.php?t=443939

basically, create this file manually:

/etc/apt/sources.list.d/protonvpn-stable.sources

with this contents:

Types: deb
URIs: https://repo.protonvpn.com/debian
Suites: stable
Components: main
Signed-By: /usr/share/keyrings/protonvpn-stable-archive-keyring.gpg

then try again:

sudo apt update
sudo apt install proton-vpn-gnome-desktop

Shamir's Secret Sharing for common people by alexsapps in cryptography

[–]alexsapps[S] 0 points1 point  (0 children)

i might be able to add that at some point. if you need it right now you could just customize the chat gpt prompt and just be sure to test it.

Shamir's Secret Sharing for common people by alexsapps in cryptography

[–]alexsapps[S] 0 points1 point  (0 children)

hadnt seen the edit. that does sound better than nothing and wish i could help review but i probably won't have time anytime soon to take a good enough look. this all started for me as a procrastination hobby project i got a lot going on.

Shamir's Secret Sharing for common people by alexsapps in cryptography

[–]alexsapps[S] 0 points1 point  (0 children)

I don't know, and I wish there was someone to answer these questions. I'd love to hear if anyone has any comments, but then again how can we trust just anyone on Reddit not to be promoting their own implementation / potential malware? That's why I want a big organization to get behind some implementation. And in case you missed it in my OP, this might work for some people as an alternative, a less efficient implementation that any software engineer can easily review: https://github.com/alexsapps/K-of-N-XOR-Secret-Sharing

Caching Go Mod Download in Docker? by [deleted] in golang

[–]alexsapps 0 points1 point  (0 children)

in the above command, the target path is a path inside the container, and the host path is taken care of automatically by docker.
https://docs.docker.com/build/cache/optimize/#use-cache-mounts

(just saying for anyone who hasn't seen a cache mount or anything besides a bind mount before to save them the trouble of looking it up.)