Changed
- [all][\breaking] Code words with a secret password section shorter than 4 bytes are no longer accepted. This only breaks completely invalid uses of the code.
- [all] Code words with a weak password section or a non-integer nameplate will throw an error in the long. This error can be upgraded to a hard error by enabling the "entropy" feature. This feature will become the default in the next major release.
- [lib] Implemented FromStr for
Code
andNameplate
- [lib] Added new checked type for the
Password
section of a wormhole code - [lib] Added new
entropy
feature. When enabled, the entropy of the passed password will be checked on creation. This will change the signature ofMailboxConnection::create_with_password
to require the password to be passed via the newPassword
wrapper type. - [lib][deprecated] Deprecated the
Code
andNameplate
From<impl Into<String>>
implementations andnew()
methods. They are unchecked and will print a warning for now. These will be removed in the next breaking release.