shekarkcb has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
Thanks.
Greetings. Just wonder, if Perl has any functions/packages to encode/decode strings. I have string,
- Encode the string to Hex (something similar to toHexString() ). -> For this i tried xxd -r -p
- convert fromHexString -> not sure what to use...
- Create a SHA1 hash for a string - for this i tried openssl sha1 -binary
- convert a string to ToBase64String -> i have tried openssl base64
- Convert a string to AES-128-ECB encode , with some key -> for this i tried openssl -enc aec-128-ecb -nosalt -k KEY
Thanks.
Back to
Seekers of Perl Wisdom