Anonymous user
User:Mwn3d/Seasoning Sandwich Caesar Cipher: Difference between revisions
User:Mwn3d/Seasoning Sandwich Caesar Cipher (view source)
Revision as of 20:01, 21 October 2014
, 9 years agoUse SecureRandom since it's cryptography
(This is probably getting way too crazy...add code to make the noise look more like the actual message with word length restrictions) |
m (Use SecureRandom since it's cryptography) |
||
Line 3:
import java.util.Random;
import java.security.SecureRandom;
public class Cipher{
Line 62 ⟶ 63:
StringBuilder noise = new StringBuilder();
Random rand = new
double meanLen = getMeanLen(orig.split("\\b++"));
double std = getStdDev(orig.split("\\b++"));
Line 135 ⟶ 136:
{{out}}
<pre>The quick brown fox Jumped over the lazy Dog and then he landed on a cat and it hurt
trnifd lc d dh o ftq cguow ndaiz raj vgybqp ahqd ftq xmlk pas mzp ftqz tq xmzpqp az m omf mzp uf tgdf ove edh u lc vox wjb hl uc giv lrxr uxwgh beyw ab scj a knhst ngso l byc yjiy ejkb iwp sns ins ie mvclru eknv yowr ju ywbkgre kkj v xhz x
|