2
\$\begingroup\$

This question already has an answer here:

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\$

marked as duplicate by AdmBorkBork, Peter Taylor code-golf Dec 3 '15 at 22:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 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 '15 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 '15 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 '15 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\$ – Digital Trauma Dec 3 '15 at 22:43