

Then why does the kernel have a crypto API?
Checkmate, Satoshi Torvalds!
Then why does the kernel have a crypto API?
Checkmate, Satoshi Torvalds!
I hate thinking of usernames and I am extremely bad at it.
Yeah I get it, it was just something I noticed. A pedantic lint, you could say.
I wanted to ask why it’s bad, what did you change?
Btw. the example function get_default is badly chosen, because unwrap_or_default exists.
That’s not how any of this works.
First of all, stripping passwords is never okay. You can reject the password and let the user choose a new one, but never just modify it on your own.
Then, if your system is at risk of code injection by certain characters in user input, please just shut it down and never turn it on again.
Stripping characters from passwords, great idea! Right up there with truncating passwords that are too long.
I would guess a swappable battery would be separated from the vehicle, similar to a gas bottle for a grill.
The battery would be rented for a small deposit and on swapping you only pay the energy + service fee.
I guess you could also buy one to own, but then could not swap that.
That’s how it would make sense, at least.