in reply to Re: usage of Crypt::Rijndael_PP
in thread usage of Crypt::Rijndael_PP

I want to build a string like: $a = "$1,$2,$3,$encrypted_data" the encrypted_data variable doesn't display/concatenate

Replies are listed 'Best First'.
Re^3: usage of Crypt::Rijndael_PP
by stevieb (Canon) on Aug 01, 2016 at 16:19 UTC

    Where is $1, $2 etc coming from? Those are special variables that contain contents of regex captures, which you aren't generating here.

    You also don't have a variable named $encrypted_data. Is this the code you're using? If not, please edit your post and include it.

    Also, add use warnings; and use strict; right above your other use line.

      I apologize for using dummy names for my variables: I do know better. Let me digress:

      I need to use real data to construct the encryption key such that the key may consist of "$user|$server". I want to store the encrypted password in a file that can be accessed by an associated key made up of user etc. I need to construct the encryption key in a sensible way...i.e. not a hex number but real data. I am stumped figuring out how to do this.