Difference between revisions of "Common-encryption"
From Gcube Wiki
(→Scope) |
(→Scope) |
||
Line 1: | Line 1: | ||
=== Scope === | === Scope === | ||
This library offers an easy way to encrypt and decrypt string objects. | 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 [http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf 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 two main classes: | ||
+ | * <code>StringEncrypter</code> for encrypting/decrypting String objects |
Revision as of 14: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 two main classes:
-
StringEncrypter
for encrypting/decrypting String objects