public class PShaUtil extends Object
P_SHA-1(secret, seed) = HMAC_SHA-1(secret, A(1) + seed) + HMAC_SHA-1(secret, A(2) + seed) + HMAC_SHA-1(secret, A(3) + seed) + ... Where + indicates concatenation.
A() is defined as: A(0) = seed A(i) = HMAC_SHA-1(secret, A(i-1))
| Constructor and Description |
|---|
PShaUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
createPSha1Key(byte[] secret,
byte[] seed,
int offset,
int length) |
static byte[] |
createPSha256Key(byte[] secret,
byte[] seed,
int offset,
int length) |
Copyright © 2025. All rights reserved.