Oh, I did not know that. Well, it makes sense that it has a heap allocation, as it becomes more or less global. Though not sure why the atomic operations are needed when the value inside is immutable.
- 0 Posts
- 188 Comments
You mean mutex? Arc allows synchronous read only access by multiple threads, so it’s not a performance bottleneck. Locking a mutex would be one.
PlexSheep@infosec.pubto Programming@programming.dev•V2 of my Anonymous, Private, Encrypted text/URL tool, with crazy strong encryption.3·16 days agoI get that coding cryptography is fun. I did it in university for the relevant classes where we had been given specific exercises, test vectors, in the second one even automatic testing with thousands of test cases, and speed mattered too. For education, that’s pretty amazing, but if you do your own Crypto and put it in production you’re just asking for trouble.
This really is just an AES GCM case. And don’t understate the beauty of using a well formalized and thought out crypto primitive for actual applications. Cryptography is fucking cool.
PlexSheep@infosec.pubto Programming@programming.dev•V2 of my Anonymous, Private, Encrypted text/URL tool, with crazy strong encryption.27·17 days agoWhat do you mean, the XOR Algorithm?? For this case, an AES-256 GCM AEAD (Authenticated Encryption, possibly with Associated Data) seems like the perfect use case. AES GCM is usually the most secure mode.
I hope you didn’t literally use XOR, so like you have some key stream the length of your data, XOR the key stream with the data to get some output. This is what some modes do internally, like AES CBC, but for an application you should just use something from a stable crypto library.
If anything, keep to Rule Number 1: Never do your own Crypto.
The sad thing about forgejo servers is that our stuff might be popular if the projects were not so isolated. I want federation so bad but I feel like I was waiting for years now
The “bug causes death” thing can be ticked for everything safety critical. Starts with the small electronics in an elevator.
PlexSheep@infosec.pubto Linux@programming.dev•Ubuntu Joins the Movement: X11 Officially Being Phased Out10·26 days agoX11 is the display server. Your desktop environment, like gnome, has a window manager managing your opened applications and tells the display server “please render this stuff on the actual screen”.
X11 is ancient and sucks, because for example, it can’t do fractional scaling well, which is important for screens that have a higher resolution, since everything appears tiny otherwise.
The display server also offers some functionalities that the desktop environment can make use of, like global hotkeys, or screen sharing.
I’m not an expert or anything, but I think it’s about right like this.
PlexSheep@infosec.pubto Linux@programming.dev•KDE Encourages Windows 10 Users to Switch to Linux2·1 month agoGnome 3
Ebird/ Merlin bird id does this wonderfully.
PlexSheep@infosec.pubto Selfhosted@lemmy.world•Is there any good decentralized cloud storage for personal backups as a self-hoster?English1·1 month agoYeah, but that is gone if you literally forget it.
PlexSheep@infosec.pubto Selfhosted@lemmy.world•Is there any good decentralized cloud storage for personal backups as a self-hoster?English11·1 month agoProblem is you need a way to decrypt that shit with memory loss and a burned down house.
PlexSheep@infosec.pubto Selfhosted@lemmy.world•Is there any good decentralized cloud storage for personal backups as a self-hoster?English5·1 month agoI recently started a “backup ring” with my buddies who have their own servers too. It’s just folders synced over sync thing, each has their own folder, and we put stuff there that we want to access even in case everything I own burns out. Works pretty well so far.
If you want DNS only in your LAN, you need to self host a DNS server and register this domain locally (by putting it in some config file of yours)
PlexSheep@infosec.pubto Selfhosted@lemmy.world•Best option for hosting ebooks and audiobooks?English4·2 months agoAudiobookshelf is insanely good. It’s almost a perfect application. Seemingly it does ebooks too, but I haven’t used that yet.
PlexSheep@infosec.pubto Rust@programming.dev•Qt Group unveils expansion plans for technology-agnostic Qt ecosystem41·2 months agoRust bindings for Qt would be pretty awesome.
Im studying the security stuff. The more you think about it, the more paranoid you become until you notice that your level of paranoia is far too high and try to ignore things.
Firmwares everywhere are definitely spying on us. Or at leasty they could, and we wouldn’t really know it.
PlexSheep@infosec.pubto Selfhosted@lemmy.world•Plex is locking remote streaming behind a subscription in AprilEnglish2·4 months agoJust use the god damn browser
PlexSheep@infosec.pubto Selfhosted@lemmy.world•Discord going public. Plz help a future refugee.English101·4 months agoTeamSpeak exists too
Same here. It just works and works well