org.openptk.crypto
Class DESCrypto

java.lang.Object
  extended by org.openptk.crypto.Crypto
      extended by org.openptk.crypto.PBECrypto
          extended by org.openptk.crypto.DESCrypto
All Implemented Interfaces:
CryptoIF

public class DESCrypto
extends PBECrypto

Author:
Scott Fehrman, Sun Microsystems, Inc.

Field Summary
 
Fields inherited from class org.openptk.crypto.Crypto
_decoder, _decryptCipher, _encoder, _encryptCipher, STRING_ENCODING
 
Constructor Summary
DESCrypto()
          Creates a CryptoIF instance using the PBEWithMD5AndDES cipher with a pre-defined pass phrase.
DESCrypto(java.lang.String passPhrase)
          Creates a CryptoIF instance using the PBEWithMD5AndDES cipher.
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.openptk.crypto.Crypto
decrypt, encrypt, getId, getImplementations, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DESCrypto

public DESCrypto()
          throws CryptoException
Creates a CryptoIF instance using the PBEWithMD5AndDES cipher with a pre-defined pass phrase.

Throws:
CryptoException

DESCrypto

public DESCrypto(java.lang.String passPhrase)
          throws CryptoException
Creates a CryptoIF instance using the PBEWithMD5AndDES cipher.

Parameters:
passPhrase - unique strong pass phrase
Throws:
CryptoException
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args - (not used)


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