in reply to Question about base64 encoded attributes with Net::LDAP::LDIF
When i need this i use https://metacpan.org/pod/MIME::Base64. As in
Note the second parm of the empty string.use MIME::Base64; $buf='Authorization: Basic '.encode_base64($args{user}.':'.$args{passw +ord},'');
Pass an empty string as second argument if you do not want the encoded string to be broken into lines.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Question about base64 encoded attributes with Net::LDAP::LDIF
by steiner (Novice) on Jun 27, 2019 at 16:24 UTC |
In Section
Seekers of Perl Wisdom