fr.paris.lutece.portal.service.util
Class CryptoService

java.lang.Object
  extended by fr.paris.lutece.portal.service.util.CryptoService

public final class CryptoService
extends Object

The Class CryptoService.


Method Summary
static String encrypt(String strDataToEncrypt, String strAlgorithm)
          Encrypt a data using an algorithm defined in lutece.properties
static String getCryptoKey()
          Get the cryptographic key of the application
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encrypt

public static String encrypt(String strDataToEncrypt,
                             String strAlgorithm)
Encrypt a data using an algorithm defined in lutece.properties

Parameters:
strDataToEncrypt - The data to encrypt
strAlgorithm - the algorithm
Returns:
The encrypted string

getCryptoKey

public static String getCryptoKey()
Get the cryptographic key of the application

Returns:
The cryptographic key of the application


Copyright © 2014 Mairie de Paris. All Rights Reserved.