An Encrypted File-backed File System on FreeBSD

The following is a compilation of information, largely based on the FreeBSD Handbook, Section 18.13 and Section 18.16. This post describes how a file-backed, encrypted file system can be built and used on FreeBSD. Prerequisites In order to follow the steps below, the following prerequisites must be met: md(4) in the Kernel gbde(4) in the […]

Generating random passwords

Here are a couple of ways of generating random passwords without using a “password generator”. First, generate a random string like this: $ dd if=/dev/urandom count=500 bs=1 | tr “n” ” ” | sed ‘s/[^a-zA-Z0-9]//g’ or like this $ dd if=/dev/urandom count=500 bs=1 | md5 Then adjust the length by piping the output through cut(1): […]

The new GenFw Tool

I’ve re-written the GenFw tool part of the TianoCore BaseTools project. The source code can be found here. In order to use the tool, the file Source/C/GenFw/GenFw.c must be replaced with the re-written one. Then, the base tools must be re-built. After that, the EDK2 build process can be started. It will automatically pick up […]