Re: Beginner Qn: Encrypting small data

From: Michael Amling (nospam_at_nospam.com)
Date: 06/30/04


Date: Wed, 30 Jun 2004 15:32:17 GMT

kackson wrote:
> Hi.
> This is the first time I'm working to encrypt some data. So, any
> advise or pointer to sites or books are deeply appreciated.
>
> I need to encrypt ( and of course decrypt) data that is not larger
> than 500KB in real time (i.e. less than one fifth or 0.2 of a sec).
> Since the data is easily accessible by unauthorized users, I would
> also need the method to easily render the entire data useless once a
> single byte of information is altered. Are there existing algorithm or
> some combination of methods that could achieve that? Or should I read
> up more books and cook up my algorithm?
>
> Thanks in advance.

   You could try AES in CTR mode with an HMAC-SHA1. You need a good
source of entropy for making up the random keys.
   If this is just temporary data, stored on disk and then read back in
by the program still running, then storing the keys should not be a
problem. Otherwise, you need to think about how the legitimate user will
get and supply the keys (passphrase, public key cryptography, etc).

--Mike Amling



Relevant Pages

  • Re: Java Security
    ... (We can pick a private algorithm but decompiling ... Never give encrypt keys on an application. ... give them by phone or letter, or use a SSL http website with the user login, ...
    (comp.lang.java.help)
  • Re: Processing UsernameForCertificateAssertion
    ... Asymmetric keys require more CPU cycles than symmetric keys to encrypt ... algorithm http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p). ... the sent and received soap headers use the same encrypt/decrypt ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Beginner Qn: Encrypting small data
    ... This is the first time I'm working to encrypt some data. ... advise or pointer to sites or books are deeply appreciated. ... up more books and cook up my algorithm? ...
    (sci.crypt)
  • Re: Beginner Qn: Encrypting small data
    ... > This is the first time I'm working to encrypt some data. ... > advise or pointer to sites or books are deeply appreciated. ... > up more books and cook up my algorithm? ... so I would say symmetric key cryptosystems would be the best ...
    (sci.crypt)
  • Re: Beginner Qn: Encrypting small data
    ... > This is the first time I'm working to encrypt some data. ... > advise or pointer to sites or books are deeply appreciated. ... > up more books and cook up my algorithm? ... so I would say symmetric key cryptosystems would be the best ...
    (sci.crypt)