-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.SecureMemoryblock.Operator_Compare
Andrew Lambert edited this page Jan 12, 2020
·
6 revisions
libsodium.SecureMemoryblock.Operator_Compare
Function Operator_Compare(OtherMB As libsodium.SecureMemoryBlock) As Int32
Function Operator_Compare(OtherMB As String) As Int32| Name | Type | Comment |
|---|---|---|
| OtherMB | SecureMemoryBlock |
The data to compare to Self. |
| Name | Type | Comment |
|---|---|---|
| OtherMB | String |
The data to compare to Self. |
This method returns 0 if OtherMB and Self are identical.
This method overloads the comparison operator (=) allowing direct comparisons between instances of SecureMemoryBlock or instances of SecureMemoryBlock 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-26 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