Difference between revisions of "Common-encryption"
From Gcube Wiki
(→Design and implementation notes) |
(→Design and implementation notes) |
||
Line 7: | Line 7: | ||
In addition, the resulting encrypted data are encoded in the BASE 64 schema in order to represent them in the ASCII string format. | 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 | + | The library use only standard java libraries. |
It exposes a main class: | 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:12, 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 standard java libraries.
It exposes a main class:
-
StringEncrypter
for encrypting/decrypting String objects