Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.google.code.springcryptoutils.core.cipher.symmetric;

Interface for performing symmetric encryption with strings containing base64 encoded versions of raw byte arrays.

Author(s):
Mirko Caserta (mirko.caserta@gmail.com)
 
 public interface Base64EncodedCipherer {

    
Encrypts or decrypts a message. The encryption/decryption mode depends on the configuration of the underlying implementation.

Parameters:
key a base64 encoded version of the symmetric key
initializationVector a base64 encoded version of the initialization vector
message if in encryption mode, the clear-text message to encrypt, otherwise a base64 encoded version of the message to decrypt
Returns:
if in encryption mode, returns a base64 encoded version of the encrypted message, otherwise returns the decrypted clear-text message
    String encrypt(String keyString initializationVectorString message);
New to GrepCode? Check out our FAQ X