Diffie–Hellman key exchange
A more complex example of dc use embedded in a [[Perl]] script performs a [[Diffie–Hellman key exchange]]. This was popular as a [[signature block]] among [[cypherpunk]]s during the [[ITAR]] debates, where the short script could be run with only Perl and dc, ubiquitous programs on Unix-like operating systems: