in reply to usage of Crypt::Rijndael_PP

What do you mean by "I can't store the encrypted data in a string"? $c_txt seems to keep the encrypted data. Do you have problems printing it? You might need to hexdump it (in a similar way you created the key), or MIME::Base64 it, or...

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: usage of Crypt::Rijndael_PP
by fionbarr (Friar) on Aug 01, 2016 at 16:11 UTC
    I want to build a string like: $a = "$1,$2,$3,$encrypted_data" the encrypted_data variable doesn't display/concatenate

      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.