-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.Password.Operator_Compare
Andrew Lambert edited this page Nov 26, 2022
·
5 revisions
Function Operator_Compare(OtherPassword As libsodium.Password) As Int32
Function Operator_Compare(OtherPassword As String) As Int32
Name | Type | Comment |
---|---|---|
OtherPassword | Password | The Password to compare to Self . |
OtherPassword | String | The password string to compare to Self . |
This method returns 0
if OtherPassword
and Self
are identical.
This method overloads the comparison operator (=
) allowing direct comparisons between instances of Password
or instances of Password
and Strings.
The comparison operation itself is a constant-time binary comparison of password strings.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2016-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.
- libsodium module
- FAQ
-
Examples
- Secure memory
- Password hashing
- Generic hashing
- Encrypting streams or files
- PKI
- Encryption
- Digital signatures
- SKI
- Encryption
- Message authentication