public class NaCl extends Object
| Constructor and Description |
|---|
NaCl(byte[] privatekey,
byte[] publickey) |
NaCl(String privatekey,
String publickey) |
| Modifier and Type | Method and Description |
|---|---|
static String |
asHex(byte[] buf) |
static String |
asHex(int[] buf) |
byte[] |
decrypt(byte[] input,
byte[] nonce) |
byte[] |
decrypt(byte[] input,
int inputlength,
byte[] nonce) |
byte[] |
encrypt(byte[] input,
byte[] nonce) |
byte[] |
encrypt(byte[] input,
int inputlength,
byte[] nonce) |
static byte[] |
getBinary(String s) |
public byte[] encrypt(byte[] input,
byte[] nonce)
public byte[] encrypt(byte[] input,
int inputlength,
byte[] nonce)
public byte[] decrypt(byte[] input,
byte[] nonce)
public byte[] decrypt(byte[] input,
int inputlength,
byte[] nonce)
public static byte[] getBinary(String s)
public static String asHex(byte[] buf)
public static String asHex(int[] buf)
Copyright © 2018. All rights reserved.