Hello again,

I'm going to use following algorithm:

key_size=0
string=pass-phrase
key_from_string=""
while(key_size < key_required_size)
{
 key_from_string+=SHA1(string)
 string+=key_from_string
 key_size += 20 bytes
}
The obtained key_from_string is key for encryption.

Is it secure to use following algorithm?
Does CryptoPP suggests something better?

Best Regards,
Voronkov Konstantin

----- Original Message ----- 
From: "Voronkov Konstantin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 4:04 PM
Subject: encryption with pass-phrase 


> Hello All!
> 
> Is there a way to encrypt something with pass-phrase instead of key
>  with CryptoPP 4.2? If not what is a standard and secure way for
>  generating encryption key from pass-phrase?
> 
> Best Regards,
> Voronkov Konstantin
> 

Reply via email to