|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.owasp.webscarab.util.Encoding
public final class Encoding
Utilities to (de-)code data.
Method Summary | |
---|---|
static byte[] |
base64decode(java.lang.String coded)
Decodes a Base64 encoded String. |
static java.lang.String |
base64encode(byte[] code)
Encodes a byte array to a Base64 encoded String. |
static java.lang.String |
hashMD5(byte[] bytes)
|
static java.lang.String |
hashMD5(java.lang.String str)
Returns the MD5 hash of a String. |
static java.lang.String |
hashSHA(java.lang.String str)
Returns the SHA hash of a String. |
static java.lang.String |
rot13(java.lang.String input)
Description of the Method |
static java.lang.String |
toHexString(byte[] b)
Converts a byte array into a hexadecimal String. |
static java.lang.String |
urlDecode(java.lang.String str)
Description of the Method |
static java.lang.String |
urlEncode(java.lang.String str)
Description of the Method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String base64encode(byte[] code)
code
- the byte code to be encoded
public static byte[] base64decode(java.lang.String coded)
coded
- the string to be decoded
public static java.lang.String toHexString(byte[] b)
b
- a byte array to be converted
public static java.lang.String hashMD5(java.lang.String str)
str
- Description of the Parameter
public static java.lang.String hashMD5(byte[] bytes)
public static java.lang.String hashSHA(java.lang.String str)
str
- Description of the Parameter
public static java.lang.String rot13(java.lang.String input)
input
- Description of the Parameter
public static java.lang.String urlDecode(java.lang.String str)
str
- Description of the Parameter
public static java.lang.String urlEncode(java.lang.String str)
str
- Description of the Parameter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |