Skip to main content
bach key prints random access keys for an app with [access]. It needs no config and changes nothing.
A key has 100 bits of randomness from the system’s random generator, in groups of four with no characters that look alike (no 0, O, 1 or I). Keys are case sensitive and exact. Use one with a build. The simplest way works in every shell: put the key in a file and pass the file.
--key-file uses the first line of the file, so a file made with --count 50 works too, with its first key. The build can also read the key from an environment variable, which each shell sets in its own way:
BACH_ACCESS_KEY=... bach build in front of the command is bash syntax. PowerShell and cmd do not understand it and report that the name is not recognised. bach key > keys.txt works in every shell, and Bach reads the file even though Windows PowerShell writes it as UTF-16.
You can use a key of your own too, as long as it is 8 to 128 characters of letters, digits and - _ . ~ + / = :.