[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iaik-jce] Data encryption questions ?

1. You would do something like:
    KeyGenerator kg = KeyGenerator.getInstance("RC2");
    Key key = kg.generateKey();
    Cipher cipher = Cipher.getInstance("RC2/ECB/PKCS5Padding");
    cipher.init(Cipher.ENCRYPT_MODE, key);

Note that CBC is usually to be prefered over ECB for block ciphers.

2. In order fastest to slowest they are: RC4, DES, RC2, TripleDES. Single
DES cannot be recommended due to the short keylength, RC2 is not too
fashionable either. TripleDES has the advantage that it is the best
studied cipher, but it is very slow compared to IDEA or even RC4. For
speed tests see also http://jcewww.iaik.at/jce/howfast.htm or execute


 Andreas Sterbenz              mailto:Andreas.Sterbenz@iaik.tu-graz.ac.at

-----Ursprüngliche Nachricht-----
Von: Gadre, Sachin <sgadre@kpmg.com>
An: <iaik-jce@iaik.tu-graz.ac.at>
Gesendet: Dienstag, 14. September 1999 18:01
Betreff: [iaik-jce] Data encryption questions ?

> All,
> 1. How to generate a RC2 40 bit key and use it with an RC2
> cipher having block mode as 'RC2/ECB/PKCS5Padding" using IAIk-JCE?
> 2. Out of the following :-  DES, Triple -DES, RC2, RC4 or any
> FIPS-140 complaint algorithm, which algorithm is the fastest for
> data encryption/decryption.
> Thanks,
> Sachin
> The information in this email is confidential and may be legally
> It is intended solely for the addressee. Access to this email by anyone
> is unauthorized.
> If you are not the intended recipient, any disclosure, copying,
> or any action taken or omitted to be taken in reliance on it, is
> and may be unlawful. When addressed to our clients any opinions or
> contained in this email are subject to the terms and conditions
expressed in
> the governing KPMG client engagement letter.
> --
> Mailinglist-archive at
> To unsubscribe send an email to listserv@iaik.tu-graz.ac.at with the
folowing content: UNSUBSCRIBE iaik-jce