Hi Monks,
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
Your suggetions/pointers are greatly helpful. Thanks.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|