Platforms to show: All Mac Windows Linux Cross-Platform

Back to BCryptMBS module.

BCryptMBS.BCrypt(Pass as String, Salt as String) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Hashes password with bcrypt based on given salt.
Example
Dim salt As String = BCryptMBS.BCryptSalt(11)
Dim hash As String = BCryptMBS.BCrypt("password", salt)

Break

BCryptMBS.BCryptSalt(Rounds as Integer) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates salt based on given numbers of rounds.

BCryptMBS.Verify(Pass as String, Hash as String) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Encryption and Hash MBS Encryption Plugin 20.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Verifies a hash to be right.
Example
// check various levels
For i As Integer = 4 To 15
Dim salt As String = BCryptMBS.BCryptSalt(i)
Dim hash As String = BCryptMBS.BCrypt("password", salt)

Dim b As Boolean = BCryptMBS.Verify("password", hash)

System.DebugLog Str(i)+" "+Str(b)+" "+hash

If Not b Then Break
Next

Check is case sensitive!
Returns true on success.

The items on this page are in the following plugins: MBS Encryption Plugin.


The biggest plugin in space...