2
\$\begingroup\$

Challenge: make a program that outputs a MD5 hash of its source code.

You should not use tricks that would be considered cheating in a quine sense (discussed here).

Using built-in functions and external libraries is allowed. The program should be a full program (not a function/subroutine). Code-golf: shortest solution (byte count) wins.

\$\endgroup\$
4
  • 5
    \$\begingroup\$ Please include sufficient information regarding MD5 hashes directly in the post such that Wikipedia could be used as a supplement rather than a necessary resource. Challenges should be as self-contained as possible. \$\endgroup\$
    – Alex A.
    Dec 3, 2015 at 21:44
  • 4
    \$\begingroup\$ This is a borderline duplicate of the plain quine challenge. A large portion of the answers can simply be copied over here with print() replaced with print(md5()). \$\endgroup\$
    – Doorknob
    Dec 3, 2015 at 21:55
  • \$\begingroup\$ In what format should the hash be printed? Hex with lowercase letters, or with uppercase, or base64, or binary, or raw binary? \$\endgroup\$
    – lirtosiast
    Dec 3, 2015 at 22:00
  • \$\begingroup\$ Its a good question, but definitely a dup of codegolf.stackexchange.com/questions/8947/…. Perhaps that one needs some more answers :) \$\endgroup\$ Dec 3, 2015 at 22:43

0

Browse other questions tagged or ask your own question.