@Deprecated
public class Box
extends java.lang.Object
| Constructor and Description |
|---|
Box(byte[] publicKey,
byte[] privateKey)
Deprecated.
|
Box(PublicKey publicKey,
PrivateKey privateKey)
Deprecated.
|
Box(java.lang.String publicKey,
java.lang.String privateKey,
Encoder encoder)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] nonce,
byte[] ciphertext)
Deprecated.
|
byte[] |
decrypt(java.lang.String nonce,
java.lang.String ciphertext,
Encoder encoder)
Deprecated.
|
byte[] |
encrypt(byte[] nonce,
byte[] message)
Deprecated.
|
byte[] |
encrypt(java.lang.String nonce,
java.lang.String message,
Encoder encoder)
Deprecated.
|
public Box(byte[] publicKey,
byte[] privateKey)
public Box(PublicKey publicKey, PrivateKey privateKey)
public Box(java.lang.String publicKey,
java.lang.String privateKey,
Encoder encoder)
public byte[] encrypt(byte[] nonce,
byte[] message)
public byte[] encrypt(java.lang.String nonce,
java.lang.String message,
Encoder encoder)
public byte[] decrypt(byte[] nonce,
byte[] ciphertext)
public byte[] decrypt(java.lang.String nonce,
java.lang.String ciphertext,
Encoder encoder)