1 | |
package pt.digitalis.dif.utils.encryption; |
2 | |
|
3 | |
import pt.digitalis.utils.crypto.IEncryptor; |
4 | |
import pt.digitalis.utils.crypto.impl.EncryptorBase64Impl; |
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | 0 | public class DIFEncryptator { |
11 | |
|
12 | |
|
13 | 0 | private static IEncryptor encryptator = null; |
14 | |
|
15 | |
|
16 | |
private static final String SEED = "125DFsrSss7254Si"; |
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | |
public static IEncryptor getEncryptator() |
24 | |
{ |
25 | 0 | if (encryptator == null) |
26 | |
{ |
27 | 0 | encryptator = new EncryptorBase64Impl(); |
28 | 0 | encryptator.setSeed(SEED); |
29 | |
} |
30 | 0 | return encryptator; |
31 | |
} |
32 | |
} |