Haiku bfs encryption and two factor Yubikey authentication

Hi there,

I just finished my side-project. Haiku now has working hardware bfs encryption support together with two-factor Yubikey authentication. (this is optional).

Readme: haiku-bfs-encryption/README.md at main · danielbenjaminsson/haiku-bfs-encryption · GitHub
Releases: Releases · danielbenjaminsson/haiku-bfs-encryption · GitHub

There is both a cli tool and gui tools to handle mount and format of encrypted disks.

mounted_icons

One really cool feature is that if YubiKey is removed from the computer, all encrypted disks that is mounted is unmounted and the encryption keys are scrubbed from memory immediately.

20 Likes

Disk encryption support including an AES implementation generated by “AI”?

Uh, no thanks. Even human-written encryption support is prone to subtle bugs, needs regular auditing by experts, and even then often still has vulnerabilities or major problems. “AI”, trained on all sorts of totally unverified encryption code, is probably at a quite severe risk of making all sorts of “beginner mistakes”. Or worse, ones that are so subtle that humans miss them.

10 Likes

The post doesn’t mention genAI, but the project has a .claude directory.

I don’t have time to go through the commit history.

Can we get a forum policy that software must disclose, in the text posted on the forum, that it was made using generative AI?

5 Likes

This please.

I would be even happier if LLM-generated code was put into a separate category on the forum.

2 Likes

Lets users decide. I think that making impression that Haiku community are AI-haters is counter-productive and may give toxic impression for new users.

11 Likes

It’s open source, right? So everyone can audit the code and fix bugs.

Most users are not expert cryptographers. I know I’m not (though I know enough to spot certain obvious problems.) So how are they well-equipped to be the ones to decide?

There are a significant number of us who very much don’t want “AI” and don’t want anything to do with “AI”. If that qualifies as ‘hate’ by whatever standard you are using here, well, then that impression would be correct.

11 Likes

Reviewing and understanding potentially adversarial code is often harder than simply writing it. This is doubly so with cryptographic code, where there are subtleties.

3 Likes

That’s awesome!!! I’ll definitely give it a try in the next few days!!! Thanks a lot!

1 Like

As long it implement existing known good encryption algorithm, you are basically fine. At least data itself will be impossible to decrypt by brute force using algorithm weakness. Haiku currently do not provide basic security features anyway such as running GUI programs with non-root user or protecting interactive session with password. Any native program can steal disk encryption password in theory.

People can decide what to do and use because of free will. And then take full responsibility of their decisions. You can’t disallow person to use software because they are not “well-equipped”. It makes no sense.

Your and my post like ratio disprove that. For proper measurement, poll should be made.

8 Likes

Disc encryption and yubikey support are both at the top of my wish-list for Haiku support! Thanks for the work!

But I see that there is quite a split opinion on this forum regarding potential vulnerabilities in the code if it was written with AI support…

As I am just a newbie user, and have no way of making a call on whether there is or is not a potential security issue, I guess I’ll wait a few months until the programme’s undergone peer review by the community, so that it has the stamp of approval to get into HaikuDepot.
Thanks for putting in the work though! Does it mean that Yubikey now works also on IceWeasle etc for 2FA on compatible websites?

1 Like

This looks too good to pass.

1 Like

True, but it’s still the whole idea behind open source software: everyone is able to look at the code, fork it, fix it, etc.

Many algorithms itself are fine, but their implementation is flawed. Happens to all (well-known) en/decryptors. I’m not saying this app is flawless, I’m sure it’s not, but neither is Haiku itself, for that matter.

I think it might be a good base to start from and fix bugs as they arise.

1 Like

I think what really irritates people is that AI users seem to go out of their way to hide the fact that they are using it. Then when AI use is discovered, they start gaslighting people and acting like they had no idea that anyone would have an issue with it. It looks very adversarial.

6 Likes

I would say the opposite if new users see that Haiku is not suffered by AI cancer.

5 Likes

Let not turn discussion about AI, it a new app on haiku that could be useful for people trying to use multiple boot partition instead of a actual user based system it simple and there code it does not matter if it use AI as long as it contributing to haiku as a whole

2 Likes

I mean if I was using AI I would be scared too because people here turn very aggressive when a person use it

4 Likes

I don’t see the author hiding it. Removing Claude files/remnants from the GitHub would be a hiding indicator, but he’s not doing that at all.

2 Likes

Yes. For for users to decide, they need the information that some application is build with AI. I’m for a firm forum rule that posts and software must declareso, if it was created with AI.
If a user doesn’t care about that, fine. If users, like waddlesplash, have another opinion, they may say so in their comments.

5 Likes

+1 for adding some comment in the title like: AI generated application, it doesn’t hurt anyone that doesn’t want to even look at these topics and will silence all the obvious comments. Don’t like it don’t use it.

On another note, there is already native “drive encryption” work done long time ago, never got to be finished(?), but maybe for those wanting to go down that road, have a look at:

Or:

6 Likes