public class SqrlNut
extends java.lang.Object
Created by Brent Nichols
| Constructor and Description |
|---|
SqrlNut(byte[] bytes)
Recreate a SQRL Nut from a byte array
|
SqrlNut(byte[] hashedIp,
int count,
int random,
boolean qr) |
SqrlNut(int count,
int random,
boolean qr) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
checkIpMatch(byte[] otherHashedIp)
This method is used to check if a requesting IP address matches this nut.
|
java.lang.Boolean |
checkIpMatch(SqrlNut otherNut)
This method is used to check if the requesting IP address matches the provided nut.
|
byte[] |
toByteArray() |
public SqrlNut(byte[] hashedIp,
int count,
int random,
boolean qr)
public SqrlNut(int count,
int random,
boolean qr)
public SqrlNut(byte[] bytes)
bytes - The 128-bit recreated representation of the nutpublic byte[] toByteArray()
public java.lang.Boolean checkIpMatch(SqrlNut otherNut)
otherNut - The nut to compare IP addresses withpublic java.lang.Boolean checkIpMatch(byte[] otherHashedIp)
otherHashedIp - The nut to compare IP addresses with