Constructor and Description |
---|
SrpUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
generateSalt()
Generates and returns a random salt number.
|
static byte[] |
generateVerifier(byte[] salt,
String password)
Generates and returns a verifier from the provided salt and password.
|
public SrpUtils()
public static byte[] generateSalt()
public static byte[] generateVerifier(byte[] salt, String password) throws IOException, NoSuchAlgorithmException
Note that the username (I) in the XBee Bluetooth Low Energy API is
fixed to apiservice
.
salt
- The salt to use.password
- The user password.IOException
- If there is a problem generating the X value.NoSuchAlgorithmException
- If the hash algorithm to use does not
exist.© Copyright 2014 - 2024 Digi International Inc. All rights reserved.