this post was submitted on 08 Jan 2025
547 points (98.2% liked)

Programmer Humor

27856 readers
952 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] BorgDrone@lemmy.one 2 points 11 months ago (1 children)

Why even bother with things like strings for a salt? I would expect it to just take a byte array. Just create some random bytes and provide that.

[โ€“] frezik@midwest.social 2 points 11 months ago

Yeah, that's my thinking, too. But the library only takes b64.