FTP-Server API

server.services
Class Crypt

java.lang.Object
  |
  +--server.services.Crypt

public class Crypt
extends Object

Encryption/decryption class


Constructor Summary
Crypt(String user)
           
 
Method Summary
 String decrypt(String str)
          convenience method for encrypting a string.
 String encrypt(char[] c)
          Method encrypt.
 String encrypt(String str)
          convenience method for encrypting a string.
 void init(char[] pass, byte[] salt, int iterations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Crypt

public Crypt(String user)
      throws SecurityException
Method Detail

init

public void init(char[] pass,
                 byte[] salt,
                 int iterations)
          throws SecurityException
SecurityException

encrypt

public String encrypt(String str)
               throws SecurityException
convenience method for encrypting a string.

Parameters:
str - Description of the Parameter
Returns:
String the encrypted string.
Throws:
SecurityException - Description of the Exception

decrypt

public String decrypt(String str)
               throws SecurityException
convenience method for encrypting a string.

Parameters:
str - Description of the Parameter
Returns:
String the encrypted string.
Throws:
SecurityException - Description of the Exception

encrypt

public String encrypt(char[] c)
Method encrypt.

Parameters:
c -
Returns:
String

FTP-Server API