StaticfromStaticfromStaticfromStaticnewStaticnewCreate a specific number of bytes of salt using provided RNG.
StaticnewCreate a number of bytes of salt chosen randomly from the given range.
StaticnewCreate a number of bytes of salt chosen randomly from the given range using provided RNG.
StaticnewCreate a number of bytes of salt generally proportionate to the size of the object being salted.
StaticnewCreate a number of bytes of salt generally proportionate to the size of the object being salted using provided RNG.
StaticrandomGenerate a random salt with specified size (legacy alias for newWithLen).
StaticrandomGenerate a random salt with specified size using provided RNG (legacy alias).
StaticproportionalGenerate a proportionally-sized salt (legacy alias for newForSize).
Return the length of the salt.
Return the length of the salt (alias for len).
Return true if the salt is empty (this is not recommended).
Return the data of the salt.
Get the raw salt bytes as a copy.
The data as a hexadecimal string.
Get hex string representation (alias for hex()).
Get base64 representation.
Get string representation showing the salt's length.
Returns the CBOR tags associated with Salt.
Returns the untagged CBOR encoding (as a byte string).
Returns the tagged CBOR encoding.
Returns the tagged value in CBOR binary representation.
StaticfromStaticfromStaticfromReturns the UR representation of the Salt. Note: URs use untagged CBOR since the type is conveyed by the UR type itself.
Returns the UR string representation.
StaticfromStaticfrom
Create a new salt from data. Note: Does not validate minimum size to allow for CBOR deserialization.