public class Skip32Util extends Object
| 构造器和说明 |
|---|
Skip32Util() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
decrypt(int value,
byte[] key)
Decrypts the provided value using the specified key
The key should be a byte array of 10 elements.
|
static int |
encrypt(int value,
byte[] key)
Encrypts the provided value using the specified key
The key should be a byte array of 10 elements.
|
static void |
main(String[] args) |
static long |
partDecrypt(long encrypted,
byte[] key) |
static long |
partEncrypt(long value,
byte[] key) |
static void |
skip32(byte[] key,
int[] buf,
boolean encrypt)
Applies the SKIP32 function on the provided value stored in buf and
modifies it inplace.
|
public static void skip32(byte[] key,
int[] buf,
boolean encrypt)
key - buf - encrypt - public static int encrypt(int value,
byte[] key)
The key should be a byte array of 10 elements.
value - key - public static int decrypt(int value,
byte[] key)
The key should be a byte array of 10 elements.
value - key - public static long partEncrypt(long value,
byte[] key)
public static long partDecrypt(long encrypted,
byte[] key)
public static void main(String[] args)
Copyright © 2025. All rights reserved.