org.openptk.crypto
Class PBECrypto

java.lang.Object
  extended by org.openptk.crypto.Crypto
      extended by org.openptk.crypto.PBECrypto
All Implemented Interfaces:
CryptoIF
Direct Known Subclasses:
DESCrypto, TripleDESCrypto

public class PBECrypto
extends Crypto

Class extends Crypto (abstract) class and provides a Password Based Encryption (PBE) implementation. Uses a pre-defined "salt"

Author:
Scott Fehrman, Sun Microsystems, Inc.

Field Summary
 
Fields inherited from class org.openptk.crypto.Crypto
_decoder, _decryptCipher, _encoder, _encryptCipher, STRING_ENCODING
 
Constructor Summary
PBECrypto(java.lang.String passPhrase, java.lang.String cipher)
          Create a CryptoIF instance that uses Password Based Encryption.
 
Method Summary
 
Methods inherited from class org.openptk.crypto.Crypto
decrypt, encrypt, getId, getImplementations, main, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBECrypto

public PBECrypto(java.lang.String passPhrase,
                 java.lang.String cipher)
          throws CryptoException
Create a CryptoIF instance that uses Password Based Encryption.

Parameters:
passPhrase - String used for encryption
cipher - String of a valid cipher implementation
Throws:
CryptoException


View/submit a bug or feature

For further API reference and developer documentation, see www.openptk.org. That documentation contains more detailed, developer-targeted descriptions, definitions of terms, workarounds, and working code examples.

Copyright (C) 2008-2012, Project OpenPTK. All Rights Reserved