danger.crypto
Class Cipher

java.lang.Object
  |
  +--danger.crypto.Cipher

public class Cipher
extends java.lang.Object


Method Summary
 byte[] decrypt(byte[] in)
           
 byte[] encrypt(byte[] in)
           
 int getBlockSize()
           
static Cipher getInstance(java.lang.String cipherName)
           
 void init(byte[] key, byte[] iv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBlockSize

public int getBlockSize()

init

public void init(byte[] key,
                 byte[] iv)

encrypt

public byte[] encrypt(byte[] in)

decrypt

public byte[] decrypt(byte[] in)

getInstance

public static Cipher getInstance(java.lang.String cipherName)


Danger Confidential. Copyright © 2000-2003, Danger Inc.