public class Encryptor extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Base64 decode then decrypt the given bytes, assuming it was a string that was encrypted and encoded using the same encryption transformation as this class.
Encrypt then base64 encode the given input string.
public Encryptor(CipherProvider cipherProvider)
public byte encryptAndEncodeString(String input) throws GeneralSecurityException
input- string to encrypt and base64 encode
GeneralSecurityException- if there was an exception encrypting
public String decodeAndDecryptString(byte input) throws GeneralSecurityException
input- bytes to decode and decrypt
GeneralSecurityException- if there was an exception decoding
Copyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.