Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 4 of 4
  1. #1
    bighairydog's Avatar
    bighairydog is offline tail-wagging member
    Join Date
    Aug 2001
    Location
    London
    Posts
    373
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Where's the CLI md5 option gone?

    I'm tragicly forlorne...

    Here I am coming back from the pub after a few swift beers looking for some checksumming action, and they've removed the command in 10.2!

    How do I checksum files in 10.2?

    ta

    Bernie :0)

    (in a mildly drunken state)
    "These are my principles, if you don't
    like them, I have others"

    // 2 line quine in PHP

    <?$s='echo"<?\$s=%27".$s."%27;\n".urldecode($s);?>';
    echo"<?\$s='".$s."';\n".urldecode($s);?>

  2. #2
    michaelsanford is offline Translator, Web Developer
    Join Date
    Oct 2002
    Location
    Ottawa/Montréal
    Posts
    2,280
    Thanks
    0
    Thanked 5 Times in 5 Posts
    There are two ways:

    1. OS X comes with openssl; so you can enter % openssl md5 <filename>

    2. Use FINK and download 'md5sum', which will save you typing in one extra word...

    (How interesting, I just came on to ask an MD5 question myself )

  3. #3
    michaelsanford is offline Translator, Web Developer
    Join Date
    Oct 2002
    Location
    Ottawa/Montréal
    Posts
    2,280
    Thanks
    0
    Thanked 5 Times in 5 Posts
    PS. Note that there is no "-" before "md5".

    PPS Your quine only prints '; echo" on my machine...
    Last edited by michaelsanford; May 16th, 2003 at 04:26 PM.

  4. #4
    bighairydog's Avatar
    bighairydog is offline tail-wagging member
    Join Date
    Aug 2001
    Location
    London
    Posts
    373
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ta Michael,

    much appreciated

    Originally posted by michaelsanford
    PPS Your quine only prints '; echo" on my machine...:rolleyes:
    Ah, you'll be looking at in a web browser. It's a text quine, so you have to look at it in source mode (or run command line PHP), because the web browser interprets < and > as HTML tags, so doesn't render the contents.

    I was going to make it render propery in HTML, but then it wouldn't be a real quine.

    take care,

    Bernie :o)
    "These are my principles, if you don't
    like them, I have others"

    // 2 line quine in PHP

    <?$s='echo"<?\$s=%27".$s."%27;\n".urldecode($s);?>';
    echo"<?\$s='".$s."';\n".urldecode($s);?>

 

 

Similar Threads

  1. Samba SWAT problem, CLI blues
    By Lazarus18 in forum Mac OS X System & Mac Software
    Replies: 0
    Last Post: December 5th, 2001, 01:05 AM
  2. MD5, Crypt and GnuPG... don't work
    By lashampoo in forum Mac OS X System & Mac Software
    Replies: 4
    Last Post: November 25th, 2001, 03:14 PM
  3. option click an app in the dock and..
    By roachswarm in forum Mac OS X System & Mac Software
    Replies: 1
    Last Post: October 15th, 2001, 04:37 PM
  4. cli FTP with put recursive option
    By WhateverJoe in forum Mac OS X System & Mac Software
    Replies: 3
    Last Post: April 20th, 2001, 11:26 AM
  5. Cannot boot except with option key
    By llewell in forum Mac OS X System & Mac Software
    Replies: 2
    Last Post: October 25th, 2000, 12:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •