01: package velosurf.util;
02:
03: /**
04: * Cryptograph - used to encrypt and decrypt strings.
05: *
06: * @author <a href=mailto:claude.brisson@gmail.com>Claude Brisson</a>
07: */
08: public interface Cryptograph {
09: /**
10: * init.
11: * @param random random string
12: */
13: public void init(String random);
14:
15: /**
16: * encrypt.
17: * @param str string to encrypt
18: * @return encrypted string
19: */
20: public String encrypt(String str);
21:
22: /**
23: * decrypt.
24: * @param str string to decrypt
25: * @return decrypted string
26: */
27: public String decrypt(String str);
28: }
|