NEW: bash-chacha20.sh

Script to encrypt file using chacha20
This commit is contained in:
xpk
2025-04-23 09:35:26 +08:00
parent 244e3a1726
commit 72f06362f8
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
# Replace key and iv with your random string. The following are examples of how to generate the strings.
key=$(openssl rand -hex 32)
iv=$(openssl rand -hex 16)
openssl enc -chacha20 -base64 -salt -md sha512 -in $1 -out $1.asc -K $key -iv $iv