All Packages Class Hierarchy This Package Previous Next Index
Class cryptix.pgp.DashProtected
java.lang.Object
|
+----cryptix.pgp.DashProtected
- public abstract class DashProtected
- extends Object
This class enables the encoding and decoding of the "- " protection
which will protect a String against some forms of corruption during
email transport. Note that this class expects all line breaks to
be represented (both before and after) as CRLFs.
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.1.1.1 $
- Author:
- Jill Baker
-
DashProtected()
-
-
decode(String)
- Remove all "- "s from the start of lines.
-
encode(String)
- Prefix all vulnerable lines with "- ".
DashProtected
public DashProtected()
encode
public static String encode(String s)
- Prefix all vulnerable lines with "- ".
- Parameters:
- s - text to be encoded
- Returns:
- dash-proteced text
decode
public static String decode(String s)
- Remove all "- "s from the start of lines.
- Parameters:
- s - dash-proteced text to be decoded
- Returns:
- text with dash-protection removed
All Packages Class Hierarchy This Package Previous Next Index