shortest code to encrypt a string
BrainFuck: 21
&gt;,[+&lt;[-&gt;+&gt;+&lt;&lt;]&gt;.&gt;+&gt;,]

Assumes EOF=zero
echo -n 'My secret password is 123456!' | beef encrypt.bf
==&gt; N{#wjiym}*{mv36HJLNPR&gt;