str4d

Results 674 comments of str4d

If you're using `cxxbridge` to generate `lib.rs.h`, you need to add the flag `--include rust/cxx.h` which will notify `cxxbridge` that you have this header available and not duplicate the definitions...

This is actually a Windows problem. Windows uses UTF-16 instead of UTF-8 as its base format, so when encoding ASCII strings as bytes you end up with extra bytes. If...

That narrows down the location of the bug, thanks!

The header line in question is written here: https://github.com/FiloSottile/age/blob/4ea591b25fba86340e06c9b9b10095bfb1a496b8/internal/format/format.go#L140 `intro` is a `const` string literal, and AFAICT Go uses UTF-8 for all strings. So the bug must be somewhere inside...

According to the [`about_Redirection` notes](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_redirection?view=powershell-7.1#notes) (link is for 7.1, but the comment is also present in the docs for 5.1, 7.0, and 7.2): > When you are writing to files,...

I don't know about detecting PS or `cmd.exe`, but you can distinguish WSL from regular Linux by checking if `/proc/sys/kernel/osrelease` contains the strings `Microsoft` or `WSL`. See https://crates.io/crates/wsl for the...

Fortunately, unlike the canonical use-case for BIP 39, it doesn't matter if we switch the word lists later for improved ones! So I'm +1 on this, and will follow in...

Generated passphrases in both age and rage use hyphen-separated words, so prefix confusion is not a concern here.

> Since age supports multiple recipients, I assume it actually encrypts a the file under a symmetric key and then sticks that key encrypted in the header. That's correct; a...

One way you could cheat 😈 is to leverage the fact that spec-compliant implementations must ignore unknown stanzas. You could "pre-allocate" sufficient header space when you first encrypt the file,...