Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added des, des-cbc, desx, and desx-cbc mode #17

Merged
merged 1 commit into from
Dec 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added lib/des-cbc.sh
Binary file not shown.
Binary file added lib/des.sh
Binary file not shown.
Binary file added lib/desx-cbc.sh
Binary file not shown.
Binary file added lib/desx.sh
Binary file not shown.
3 changes: 2 additions & 1 deletion shell-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export NODE_OPTIONS=--openssl-legacy-provider
MODE_ENC=("aes-128-cbc" "aes-192-cbc" "aes-256-cbc" "aes-128-cbc_base64" "aes-192-cbc_base64" \
"aes-256-cbc_base64" "aes-128-cbc_zlib" "aes-192-cbc_zlib" "aes-256-cbc_zlib" "aria-128-cbc" \
"aria-192-cbc" "aria-256-cbc" "base64" "camellia-128-cbc" "camellia-192-cbc" "camellia-256-cbc" \
"ccrypt" "des3" "des-ede" "des-ede3" "des-ede-cbc" "des-ede3-cbc" "gcrypt" "sm4" "sm4-cbc" "zlib")
"ccrypt" "des" "des-cbc" "des-ede" "des-ede-cbc" "des-ede3" "des-ede3-cbc" "des3" "desx" "desx-cbc" \
"gcrypt" "sm4" "sm4-cbc" "zlib")
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo null)

# The [[ -t 1 ]] check only works when the function is not called from
Expand Down
3 changes: 2 additions & 1 deletion tests/encryption.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export NODE_OPTIONS=--openssl-legacy-provider
MODE_ENC=("aes-128-cbc" "aes-192-cbc" "aes-256-cbc" "aes-128-cbc_base64" "aes-192-cbc_base64" \
"aes-256-cbc_base64" "aes-128-cbc_zlib" "aes-192-cbc_zlib" "aes-256-cbc_zlib" "aria-128-cbc" \
"aria-192-cbc" "aria-256-cbc" "base64" "camellia-128-cbc" "camellia-192-cbc" "camellia-256-cbc" \
"ccrypt" "des3" "des-ede" "des-ede3" "des-ede-cbc" "des-ede3-cbc" "gcrypt" "sm4" "sm4-cbc" "zlib")
"ccrypt" "des" "des-cbc" "des-ede" "des-ede-cbc" "des-ede3" "des-ede3-cbc" "des3" "desx" "desx-cbc" \
"gcrypt" "sm4" "sm4-cbc" "zlib")

rm -rf file/* out/*
echo "[!] Testing code for bash script file"
Expand Down