Library that should allow quick implementation of tools that are compatible with PasswordMaker Pro.
It forms the core of an upcoming PasswordMaker Pro compatible Sailfish OS App (as of yet unnamed). This library intentionally does not depend on any specific implementation of the cryptographic hashes it relies on. To see an example of how to integrate with the Rust Crypto Hashes, see the integration tests.
UrlParsing takes a user-supplied string, and generates another string from it, according to the passed in settings.
The idea is to strip unwanted parts of an URI when generating passwords. For instance, you usually want the same result
for all sub-pages of a given website.
PasswordMaker is the main part of this crate. You give it settings similar to those of a PasswordMaker Pro profile,
and it gives you a password that’s hopfully the same you’d get from PasswordMaker Pro for the same input.
The library comes with a set of precomputed powers to (slightly) speed up computation in common use cases. By default, constants
for the lengths of the pre-defined character sets of PasswordMaker Pro are included (10, 16, 32, 52, 62, 94), amounting to a total
of 360 bytes on a 32bit machine, and 408 bytes on a 64bit machine (and some instructions to read them). For all other character
set lengths the values are computed at runtime when needed. Those values are in the (default-enabled)
If you prefer simpler code and want to save a couple of bytes in the binary, you can disable
default-features to use runtime
computation for all values, at the cost of a slight performance impact.
On the other hand, if binary size is not of concern, you might want to enable the
This feature enables precomputed powers for all bases in the range 2..130. It therefore needs 7680 bytes on a 32bit machine, and
8704 bytes on a 64bit machine (plus some extra instructions).
This library has NOT been tested on 16bit machines. It might work, but probably does not.
PasswordMaker object failed due to invalid settings.