
public class BlockChipher extends Object
| Constructor and Description |
|---|
BlockChipher(Cipher c) |
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(byte[] encrypted,
Key key) |
byte[] |
encrypt(String plaintext,
Key key) |
public BlockChipher(Cipher c)
public byte[] encrypt(String plaintext, Key key) throws IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException, InvalidKeyException
public String decrypt(byte[] encrypted, Key key) throws IllegalBlockSizeException, BadPaddingException, UnsupportedEncodingException, InvalidKeyException
Copyright © 2018 universAAL Consortium. All rights reserved.