Skip to content

Commit

Permalink
print mess
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-word committed Oct 4, 2018
1 parent 656a255 commit 378ab53
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Cryptography-CSS/CustomEncryption.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
Enter plaintext: You want to know how two chemicals interact, do you ask them? No, they're going to lie through their lying little chemical teeth. Throw them in a beaker and apply heat.
Encrypting
Message Digest: L+bcJy0yv2wDT1iYsK9VmLmzVHLDOMW+juQlgLAigBA=
length: 214
Cipher text: = :†~ôh½¶¹Ýª4½Rµ,„„o\^å·¥Õ¾ÿQ>‹—I°ÜPôç½·éSÉàCË᛽ï÷‚³›)"3}H&6 ߬¾o®<ÁEDaÜÄ$‰X½OLì´M¸ÏXÐÀ!%ÖãØ{R¹aK?Îß7kÆ®€¤
ÞcWÊ*ßOø¤o²µÒèáýÖH&‚ b4ØT"¥1µkë¹z•C"œg¥ªtYrãNAÊ­íC9S}燪ä‹o¯m¢ç6Z¦óú±)ƒ‹g/D
vþ=˜^
Decrypting
length: 214
Message Digest: L+bcJy0yv2wDT1iYsK9VmLmzVHLDOMW+juQlgLAigBA=
Hash of message: L+bcJy0yv2wDT1iYsK9VmLmzVHLDOMW+juQlgLAigBA=
Is Message Digest equal to Hash? true
Plain text: You want to know how two chemicals interact, do you ask them? No, they're going to lie through their lying little chemical teeth. Throw them in a beaker and apply heat.
*/


import java.util.*;
import java.io.*;
import java.security.MessageDigest;
Expand Down

0 comments on commit 378ab53

Please sign in to comment.