Make a program that outputs its own MD5 hash

2

0

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.

anatolyg

Posted 2015-12-03T21:37:36.143

Reputation: 10 719

Question was closed 2015-12-03T22:00:21.573

5Please 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. – Alex A. – 2015-12-03T21:44:43.677

4

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()).

– Doorknob – 2015-12-03T21:55:24.353

In what format should the hash be printed? Hex with lowercase letters, or with uppercase, or base64, or binary, or raw binary? – lirtosiast – 2015-12-03T22:00:33.017

Its a good question, but definitely a dup of http://codegolf.stackexchange.com/questions/8947/cryptographic-quine-variant. Perhaps that one needs some more answers :)

– Digital Trauma – 2015-12-03T22:43:40.193

No answers