forked from shadowsocksr-backup/shadowsocksr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from __future__ import absolute_import, division, print_function, \ | ||
with_statement | ||
|
||
import sys | ||
import os | ||
|
||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../')) | ||
|
||
|
||
from crypto import rc4_md5 | ||
from crypto import openssl | ||
from crypto import sodium | ||
from crypto import table | ||
|
||
def main(): | ||
print("\n""rc4_md5") | ||
rc4_md5.test() | ||
print("\n""aes-256-cfb") | ||
openssl.test_aes_256_cfb() | ||
print("\n""aes-128-cfb") | ||
openssl.test_aes_128_cfb() | ||
print("\n""rc4") | ||
openssl.test_rc4() | ||
print("\n""salsa20") | ||
sodium.test_salsa20() | ||
print("\n""chacha20") | ||
sodium.test_chacha20() | ||
print("\n""table") | ||
table.test_encryption() | ||
|
||
if __name__ == '__main__': | ||
main() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters