cryptix.pgp
Class Passphrase

java.lang.Object
  |
  +--cryptix.pgp.Passphrase

public final class Passphrase
extends java.lang.Object

This class stores a passphrase's MD5 hash, which is all that is needed, then attempts to wipe the plaintext from memory. A determined attacker could still find this hash (e.g. from a swapfile) - so keep your computer physically secure and only install trusted applications.

Copyright © 1995-1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.1.1.1 $

Since:
Cryptix 2.2 or earlier
Author:
Ian Brown, Jill Baker

Constructor Summary
Passphrase()
          Deprecated. Obtaining a password from the user is part of the UI, and should not be a part of this library. (At least, not in this file).
Passphrase(boolean showPass)
          Deprecated. Obtaining a password from the user is part of the UI, and should not be a part of this library. (At least, not in this file).
Passphrase(java.lang.String passphrase)
           
 
Method Summary
 IDEA hash()
          Deprecated.  
 byte[] md5hash()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Passphrase

public Passphrase(java.lang.String passphrase)

Passphrase

public Passphrase()
           throws java.io.IOException
Deprecated. Obtaining a password from the user is part of the UI, and should not be a part of this library. (At least, not in this file).


Passphrase

public Passphrase(boolean showPass)
           throws java.io.IOException
Deprecated. Obtaining a password from the user is part of the UI, and should not be a part of this library. (At least, not in this file).

Method Detail

hash

public IDEA hash()
Deprecated.  


md5hash

public byte[] md5hash()