Argon2SwiftResult
public class Argon2SwiftResult
                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
- 
                  
                  
The byte array of solely the hashed result
Declaration
Swift
let hashBytes: [UInt8] - 
                  
                  
The byte array of the encoded result, containing the hash, version, salt, and Argon2 params
Declaration
Swift
let encodedBytes: [UInt8] - 
                  
                  
Initializes a new
Argon2SwiftResultobject with a given encoded byte array and hash byte arrayDeclaration
Swift
public init(hashBytes: [Int8], encodedBytes: [Int8])Parameters
hashBytesThe byte array of the hashed password
encodedBytesThe byte array of the encoded result
Return Value
An
Argon2SwiftResultobject containing the result of the hashing operation performed - 
                  
                  
A method to return the hash as a
DataobjectDeclaration
Swift
public func hashData() -> DataReturn Value
The computed hash as a
Dataobject - 
                  
                  
A method to return the encoded hash as a
DataobjectDeclaration
Swift
public func encodedData() -> DataReturn Value
The encoded hash from the computation as a
Dataobject - 
                  
                  
A method to return the hash as a base64-encoded
StringDeclaration
Swift
public func base64String() -> StringReturn Value
The hash encoded to base64
 - 
                  
                  
A method to return the hash as a hex-encoded
StringDeclaration
Swift
public func hexString() -> StringReturn Value
The hash encoded to hex
 - 
                  
                  
A method to return the encoded computation in its string form
Declaration
Swift
public func encodedString() -> StringReturn Value
The encoded computation with all information as a readable
String 
      Argon2SwiftResult Class Reference