Sorry, forgot to mention that the advice below assumes you're using a 
different salt (see http://en.wikipedia.org/wiki/Key_derivation_function if 
you don't know what that means) for each message. If you're planning to use 
the same salt, you should generate random IVs instead.

See http://www.cryptopp.com/wiki/RandomNumberGenerator for how to generate 
random byte arrays.

----- Original Message ----- 
From: "Wei Dai" <[EMAIL PROTECTED]>
To: "Rash" <[EMAIL PROTECTED]>; "Crypto++ Users" 
<[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2007 2:56 AM
Subject: Re: Encryption and Decryption of text files


>
> You can use PKCS12_PBKDF::DeriveKey to do this. Call it twice with 
> different
> "purpose" parameters to generate the key and IV.
>
> ----- Original Message ----- 
> From: "Rash" <[EMAIL PROTECTED]>
> To: "Crypto++ Users" <[EMAIL PROTECTED]>
> Sent: Monday, February 19, 2007 5:28 PM
> Subject: Re: Encryption and Decryption of text files
>
>
>>
>> Hi guys,
>> I dont understand why is this forum used if there is nobody to reply
>> our queries.
>>
>> I'm seriously getting mad to find a solution to this simple question.
>> But I dont know there is nobody to help...Is there other links which
>> can help me to solve my queries.
>>
>> I have a password "somepassword"
>> I want to calculate key and IV value based on length of password. This
>> key and IV value will be passed to AES_CTR_Encrypt function defined in
>> the library.
>>
>> Please help guys....
>> Someone please.....
>>
>> Waiting eagerly
>>
>>
>> >
>
>
>
> > 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to