Difference between revisions of "Common-encryption"

From Gcube Wiki
Jump to: navigation, search
(Scope)
(Design and implementation notes)
Line 9: Line 9:
 
The library use only native java libraries.
 
The library use only native java libraries.
  
It exposes two main classes:
+
It exposes a main class:
 
* <code>StringEncrypter</code> for encrypting/decrypting String objects
 
* <code>StringEncrypter</code> for encrypting/decrypting String objects

Revision as of 15:51, 11 April 2013

Scope

This library offers an easy way to encrypt and decrypt string objects.

Design and implementation notes

The library uses a symmetric key based on the AES standard algorithm for cryptography. It does expect that such a key is available on the local classpath. Optionally, the key can be programmatically passed to the methods exposed by the Encrypters.

In addition, the resulting encrypted data are encoded in the BASE 64 schema in order to represent them in the ASCII string format.

The library use only native java libraries.

It exposes a main class:

  • StringEncrypter for encrypting/decrypting String objects