theKingOfNight's Blog

Asemica---一款神奇的加密明文工具

Word count: 1.1kReading time: 6 min
2019/02/21 Share

Asemica会将明文加密成类似明文,而且一般人难以发现

环境准备

下载地址:

1
https://github.com/linenoise/asemica

1
2
┌[thekingofnight@parrot][~/Tools/Cropty]
└╼ $git clone https://github.com/linenoise/asemica

使用

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
┌[thekingofnight@parrot][~/Tools/Cropty/asemica]
└╼ $./asemica
Asemica: an asemic Markov-chained cipher, v. 1.0
Usage: ./asemica (enc|dec) -c <corpus_file> [-i <input_file>] [-o <output_file>] [-f <format>] [--force] [--help]
OPTIONS:
-c/--corpus: specify corpus filename or URL
-i/--input: specify input filename (defaults to STDIN)
-o/--output: specify output filename (defaults to STDOUT)
-f/--format: specify output format (defaults to none)
--force: forces runtime on an insufficiently complex corpus
--help: displays this message
-v/--verbost: increments verbosity setting (used for debugging)
AVAILABLE FORMATS:
none: doesn't format output; returns only word list
email: formats output to look like an informal email
poem: if you want your output to look like poetry
EXAMPLES
echo "message" | ./asemica enc -c corpus.txt -o asemic.txt
./asemica dec -c corpus.txt -i asemic.txt

一些案例(参考手册中的EXAMPLES)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
┌[thekingofnight@parrot][~/Tools/Cropty/asemica]
└╼ $echo "Hi,I'm theKingOfNight!"|./asemica enc -C LICENSE.txt -o test.txt
┌[thekingofnight@parrot][~/Tools/Cropty/asemica]
└╼ $ls
asemica LICENSE.txt README.md test.txt
┌[thekingofnight@parrot][~/Tools/Cropty/asemica]
└╼ $cat test.txt
License June C Software States not anything users regenerate from conditions The Affero Public
along any claim infringed making an code source a against work's Libraries dynamically subprograms
the Conveying those and All example Source The If HOLDER ANY agreement commitment to QUALITY
PERFORMANCE THE Conveying any license a Product example you add to New will useful WITHOUT OF
License anyone conveys material e the Information to FOR The Conveying those However
you add to FOR an if distribute or FAILURE THE AND Information a Conveying object whose code source
as THE By Corresponding
┌[thekingofnight@parrot][~/Tools/Cropty/asemica]
└╼ $./asemica dec -C LICENSE.txt -i test.txt
Hi,I'm theKingOfNight!

openssl加密

openssl加密意味着没有密钥就不可以成功解密

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
┌[thekingofnight@parrot][~/Tools/Cropty/asemica]
└╼ $echo "Hi.I'm theKingOfNight and this is with openssl!"|openssl bf -pass pass:p4ssw0rd|./asemica enc -C LICENSE.txt -o test.txt
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
┌[thekingofnight@parrot][~/Tools/Cropty/asemica]
└╼ $cat test.txt
the INCLUDING physical customarily for and OF Freedom share change versions give who a END
TERMS courts apply the AS license attempt to New will apply law WHEN speak free precise and
Corresponding fixed a based work any of However does require special OR Limitation Liability
a Product by data DATA RENDERED OR Additional permissive terms prohibit from copies your from
network violates rules protocols communication control Those whom convey at For compliance
third of Major and and All liability these e to Nothing this acknowledges rights Anti Law most our
it been and are by authors that be but differ detail address problems concerns version the GPL prohibit
from copyright Free license also the By Corresponding includes convenient prominently feature displays
appropriate of GPL your permission run copy a OF Corresponding under previous plus right grant patent
and a END TERMS do This Therefore modifying private Propagation a In THE IS YOU an copy this But
entire remains by manner by manner with NO password key unpacking or Access install for Corresponding
conveyed this are by data DATA or Access copy or Access copy License June C misrepresentation
the By copyright Notwithstanding other the HOLDERS OR OTHER for The Information this The A
based the A Conveying Program WITH Major or BEING to Installation for and Corresponding
along this GPL that a OF Corresponding under License a PURPOSE or Each an code or Access legal
displayed works licenses under patent the If are on copy includes definition includes right grant under
d the AS from copy Corresponding Regardless what individual permit your any EITHER that If do
convey machine Corresponding Regardless whether court agreement otherwise propagate work a
Library may be in code any from any HOLDER a OF KIND

1
2
3
4
5
6
7
8
9
10
11
┌[thekingofnight@parrot][~/Tools/Cropty/asemica]
└╼ $./asemica dec -C LICENSE.txt -i test.txt
3��4@�o�&�܊�
┌[thekingofnight@parrot][~/Tools/Cropty/asemica]
└╼ $./asemica dec -C LICENSE.txt -i test.txt |openssl bf -d -pass pass:worngpassword
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
bad decrypt
140679471490112:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:537:
L;�@�`�{��U�[�@%S�~uu�ڷ����f�A��J�
�,�e��'��
1
2
3
4
5
┌[✗][thekingofnight@parrot][~/Tools/Cropty/asemica]
└╼ $./asemica dec -C LICENSE.txt -i test.txt |openssl bf -d -pass pass:p4ssw0rd
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
Hi.I'm theKingOfNight and this is with openssl!

邮件格式

1
2
3
4
5
6
7
8
9
10
11
12
┌[thekingofnight@parrot][~/Tools/Cropty/asemica]
└╼ $echo "Hi.I'm theKingOfNight and this is with email!"|./asemica enc -C LICENSE.txt -f email -o test.txt
┌[thekingofnight@parrot][~/Tools/Cropty/asemica]
└╼ $cat test.txt
This,
Any PARTY the GPL prohibit practice patent covenant to Nothing this For an code source a. Against party BEEN or FAILURE THE A In License by Free you actual. That are granted to These e to FOR an? If cannot given distinguishing number the Conveying covered means kind? Propagation copying provided inform peers the Information a Conveying Copies your have! Can it any and Corresponding in You apply way could it any HOLDER ANY! Agreement commitment to FOR copy Corresponding as by access a. OF Freedom price each an code in. Appropriate Notices that The AS license June C?
Individual of Freedom change works Inclusion a Product. Example may it code A In area products individuals use modify is consumer doubtful shall resolved. Favor coverage a available server Corresponding Regardless how? Contact by License by exceptions above LIABLE infringement grant sublicenses a Product example Source The. If HOLDER reinstated do convey copies the A In business distributing under copyright for The. For The GPL needed generate and Information how Apply! Follow later versions such When speak free precise and Information this The Ancillary of.
For,
Copies
1
2
3
┌[thekingofnight@parrot][~/Tools/Cropty/asemica]
└╼ $./asemica dec -C LICENSE.txt -i test.txt
Hi.I'm theKingOfNight and this is with email!

参考

https://www.youtube.com/watch?v=_sqNuho32-M
https://github.com/linenoise/asemica

CATALOG
  1. 1. 环境准备
  2. 2. 使用
    1. 2.1. 一些案例(参考手册中的EXAMPLES)
    2. 2.2. openssl加密
    3. 2.3. 邮件格式
  3. 3. 参考