Common-encryption

From Gcube Wiki
Revision as of 14:51, 11 April 2013 by Roberto.cirillo (Talk | contribs) (Design and implementation notes)

Jump to: navigation, search

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