Argon2MBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Argon2MBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Encryption and Hash MBS Encryption Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The class to calculate hashes using Argon2.
Example
dim a as new Argon2MBS

a.OutputLength = 24
a.Password = "password"
a.Salt = "somesalt"
a.cost = 2
a.MemoryCost = 65536 // 64 Megabytes
a.Lanes = 4
a.Threads = 4

dim hash as string = a.Calc(a.kTypeI)
dim t as string = EncodeHex(hash)

if t = "45d7ac72e76f242b20b77b9bf9bf9d5915894e669a24e6c6" then
// ok
else
Break // failed
end if

You can use this class to calculate password hashes.
Due to the cost associated to calculate it, the hash is difficult to brute force.

see
https://github.com/p-h-c/phc-winner-argon2

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine


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


ArchiveWriterMBS   -   AudioPlayThruMBS


💬 Ask a question or report a problem