public class EcRsaOaep extends Object
| Constructor and Description |
|---|
EcRsaOaep() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decrypt(EcPpk ppk,
String ciphertext)
Decrypts a block of ciphertext (no more than 256 bytes) with a private
key using RSA OAEP encryption.
|
static String |
encrypt(EcPk pk,
String plaintext)
Encrypts a block of plaintext (no more than 256 bytes) with a public key
using RSA OAEP encryption.
|
static String |
sign(EcPpk ppk,
String text)
Creates a signature for the provided text using the public private
keypair.
|
static String |
signSha256(EcPpk ppk,
String text)
Creates a signature for the provided text using the public private
keypair.
|
static Boolean |
verify(EcPk pk,
String text,
String signature)
Verifies the integrity of the provided text using a signature and a
public key.
|
public static String encrypt(EcPk pk, String plaintext)
{EcPk} - pk Public Key.{string} - plaintext Plaintext. Does not perform encoding.public static String decrypt(EcPpk ppk, String ciphertext)
{EcPpk} - ppk Public private keypair.{string} - ciphertext Ciphertext.public static String sign(EcPpk ppk, String text)
{EcPpk} - ppk Public private keypair.{string} - text Text to sign.public static String signSha256(EcPpk ppk, String text)
{EcPpk} - ppk Public private keypair.{string} - text Text to sign.public static Boolean verify(EcPk pk, String text, String signature)
{EcPk} - pk Public key.{string} - text Text to verify.{string} - signature Base64 encoded signature.Copyright © 2019 Eduworks Corporation. All rights reserved.