org.netbeans.lib.uihandler
Class PasswdEncryption
java.lang.Object
org.netbeans.lib.uihandler.PasswdEncryption
public class PasswdEncryption
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_ENCRYPTION_LENGHT
public static final int MAX_ENCRYPTION_LENGHT
- See Also:
- Constant Field Values
PasswdEncryption
public PasswdEncryption()
encrypt
public static String encrypt(String text)
throws IOException,
GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
encrypt
public static byte[] encrypt(byte[] text)
throws IOException,
GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
encrypt
public static byte[] encrypt(byte[] text,
PublicKey key)
throws IOException,
GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
decrypt
public static byte[] decrypt(byte[] text,
PrivateKey key)
throws IOException,
GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
encrypt
public static String encrypt(String text,
PublicKey key)
throws IOException,
GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
decrypt
public static String decrypt(String text,
PrivateKey key)
throws IOException,
GeneralSecurityException
- Throws:
IOException
GeneralSecurityException