to get a md5 encoded user name or user password.
I have tried different command flavor with no success.
~> perl -MDigest::MD5 -e 'print encode_base64("some_user");'
Undefined subroutine &main::encode_base64 called at -e line 1.
~> perl -MDigest::MD5 -e 'print md5_base64("some_user");'
Undefined subroutine &main::md5_base64 called at -e line 1.
~> perl -MDigest::MD5 -e 'print hmac_md5("some_user");'
Undefined subroutine &main::hmac_md5 called at -e line 1.
~> perl -MDigest::HMAC_MD5 -e 'print hmac_md5("some_user");'
Undefined subroutine &main::hmac_md5 called at -e line 1.
~> perl -MDigest::MD5 -e 'print md5_base64("some_user");'
Undefined subroutine &main::md5_base64 called at -e line 1.
~> perl -MDigest::MD5 -e 'print hmac_md5("some_user");'
Undefined subroutine &main::hmac_md5 called at -e line 1.
~> perl -MDigest::MD5 -e 'print md5("some_user");'
Undefined subroutine &main::md5 called at -e line 1.
~> perl -e 'use HMAC_MD5;'
Can't locate HMAC_MD5.pm in @INC (you may need to install the HMAC_MD5 module) (@INC contains: /usr/lib/perl5/site_perl/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.18.2 /usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.18.2 /usr/lib/perl5/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/5.18.2 /usr/lib/perl5/site_perl .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
~> perl -e 'use MD5;'
Can't locate MD5.pm in @INC (you may need to install the MD5 module) (@INC contains: /usr/lib/perl5/site_perl/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.18.2 /usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.18.2 /usr/lib/perl5/5.18.2/x86_64-linux-thread-multi /usr/lib/perl5/5.18.2 /usr/lib/perl5/site_perl .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
But HMAC_MD5.pm is in “/usr/lib/perl5/vendor_perl/5.18.2/Digest”
and MD5.pm is in “/usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi/Digest” or in “/usr/lib/perl5/5.18.2/x86_64-linux-thread-multi/Digest”
As for your other errors trying to encode, you’re fairly obviously passing something that isn’t supported when the routine errors out on line 1. You might want to look for examples and documentation for what you’re trying to do.
Last comment,
The network connections and their ports specified by your ISP look pretty standard. I don’t remember for sure at the moment how an MD5 encoded connection is supposed to work, but an SSL/TLS connection is pretty simple, if an automatic key exchange isn’t available you should only need to install an authorized certificate and use it to encrypt your connection, thereby “wrapping” your encryption around your content (You don’t need to encrypt your content further).
One other thing…
If you might want to consider installing a different openSUSE Perl, the following describes the openSUSE package naming convention…
Sorry, but English is not my mother language. I don’t understand what you try to explain.
My question is rather :
If I use “dXNlcm5hbWU=” ( perl -MMIME ) or “FMSwa4JOxZMjk2JRf1OLKQ” ( perl -MDigest ) in an encoded username/password mailx sequence with my ISP, is it equivalent.
In other words, when my Internet service provider will check that I am who I claim to be, will they succeed with either encoded methods?
Your ISP doesn’t nothing except store/protect ‘your’ hash as long as what you send matches the hash stored, all is good… the hash can’t be decoded, that’s the point.
A mime type as seen can be decoded, hence not suitable…
As my question is about a login sequence (mailx command) to a smtp server, my ISP must be able to verify that the user { “dXNlcm5hbWU=” ( perl -MMIME ) or “FMSwa4JOxZMjk2JRf1OLKQ” ( perl -MDigest ) } and the password correspond to me in their database ?
So how could he accepts my connection without knowing who is connecting ?
malcolmlewis;2893210 Wrote:
> Hi
> Maybe this will help?
>
> Cryptographic hash function - Wikipedia
>
> Your ISP doesn’t nothing except store/protect ‘your’ hash as long as
> what you send matches the hash stored, all is good… the hash can’t
> be decoded, that’s the point.
>
> A mime type as seen can be decoded, hence not suitable…
Thank you for the link.
As my question is about a login sequence (mailx command) to a smtp
server, my ISP must be able to verify that the user { “dXNlcm5hbWU=” (
perl -MMIME ) or “FMSwa4JOxZMjk2JRf1OLKQ” ( perl -MDigest ) } and the
password correspond to me in their database ?
So how could he accepts my connection without knowing who is connecting
?
Hi
As long as the decoded username matches the hashes they store (however
the ISP does it [LDAP?]), then it will let you (or anyone who knows the
username/password) in…
Have a look at the shadow and passwd man pages (eg man 5 shadow) to see
how it’s done on your local machine.
–
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.28-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!