1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-1078 App | Tech | Updated release keystore config + Firebase distribution config + Scripts for de/en/cryption (#3072)

This commit is contained in:
Evgenii Kozlov 2023-04-04 12:41:41 +02:00 committed by GitHub
parent 817a2785d6
commit e81313ccba
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 56 additions and 0 deletions

25
scripts/common/decrypt.sh Executable file
View file

@ -0,0 +1,25 @@
# Prerequisite: brew install --cask gpg-suite
echo Enter name of encrypted file including its extension
read -r input
if [[ -z $input ]]; then
echo "Input should not be empty"; exit 1
fi
echo Enter name for output file
read -r output
if [[ -z $input ]]; then
echo "Output should not be empty"; exit 1
fi
echo Enter key for decryption
read -r key
if [[ -z $key ]]; then
echo "Key should not be empty"; exit 1
fi
echo Starting decryption...
gpg --quiet --batch --yes --decrypt --passphrase="${key}" --output ${output} ${input}
echo Your decrypted file "${output}" is created.

25
scripts/common/encrypt.sh Executable file
View file

@ -0,0 +1,25 @@
# Prerequisite: brew install --cask gpg-suite
echo Enter input filename
read -r input
if [[ -z $input ]]; then
echo "Input should not be empty"; exit 1
fi
echo Enter output filenmae
read -r output
if [[ -z $output ]]; then
echo "Output should not be empty"; exit 1
fi
echo Enter key for encryption
read -r key
if [[ -z $key ]]; then
echo "Key should not be empty"; exit 1
fi
echo Starting encryption...
gpg --batch --yes --passphrase="${key}" --cipher-algo AES256 --symmetric --output ${output}.gpg ${input}
echo Your encrypted file "${output}.gpg" is created.

Binary file not shown.