public class Encrypter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AesCbcWithIntegrity.SecretKeys |
key |
protected SecretKeySpec |
sks |
| Modifier and Type | Method and Description |
|---|---|
String |
decode(String input) |
String |
encode(byte[] inputBytes) |
String |
encode(String input) |
protected SecretKeySpec sks
protected AesCbcWithIntegrity.SecretKeys key
public Encrypter(String password) throws GeneralSecurityException
GeneralSecurityExceptionpublic String encode(String input) throws UnsupportedEncodingException, GeneralSecurityException
public String encode(byte[] inputBytes)
public String decode(String input) throws UnsupportedEncodingException, GeneralSecurityException
Copyright © 2017. All rights reserved.