Classes
The following classes are available globally.
-
Main class to handle all Argon2 hashing and verification
Usage Example
- Hash the password: “Password12”
See morelet hashResult = try! Argon2Swift.hashPasswordString(password: "Password12", salt: Salt.newSalt()) let hashData = hashResult.hashData() let base64Hash = hashResult.base64String() let hexHash = hashResult.hexString() let encodedData = hashResult.encodedData() let encodedString = hashResult.encodedString()
Declaration
Swift
public class Argon2Swift
-
A wrapper class containing the result of a hash operation performed with Argon2, allowing for ease conversion of the byte array as well as raw access
See moreDeclaration
Swift
public class Argon2SwiftResult
-
A class to wrap around Salts in argon2. allowing cryptographically secure generation of salts as well as utilization of premade salts
See moreDeclaration
Swift
public class Salt