You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Leif Hedstrom <zw...@apache.org> on 2010/04/28 05:57:40 UTC

Re: admin_password format

On 11/02/2009 11:25 PM, Eric Balsa wrote:
> FYI, the format in records.config for
> proxy.config.admin.admin_password can be re-created with:
>
> #!/usr/bin/php
> <?php
> $foo = md5('admin',true);
> echo strtoupper(substr(bin2hex($foo),0,23)) . "\n";
>
> Looking forward to the one-liner in perl
>    

Better late than never (and I don't even know perl):

    perl -MDigest::MD5 -le 'print 
uc(substr(Digest::MD5::md5_hex($ARGV[0]), 0, 23))'  your-password


-- Leif


Re: admin_password format

Posted by Miles Libbey <mi...@yahoo-inc.com>.
Is this worth having in the documentation?  At one point it was, but  
got blown away.  Easy enough to put back in.

miles


On Apr 27, 2010, at 8:57 PM, Leif Hedstrom wrote:

> On 11/02/2009 11:25 PM, Eric Balsa wrote:
>> FYI, the format in records.config for
>> proxy.config.admin.admin_password can be re-created with:
>>
>> #!/usr/bin/php
>> <?php
>> $foo = md5('admin',true);
>> echo strtoupper(substr(bin2hex($foo),0,23)) . "\n";
>>
>> Looking forward to the one-liner in perl
>>
>
> Better late than never (and I don't even know perl):
>
>    perl -MDigest::MD5 -le 'print
> uc(substr(Digest::MD5::md5_hex($ARGV[0]), 0, 23))'  your-password
>
>
> -- Leif
>