Skip to content

kitsook/PyAndSafe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyAndSafe

A GUI to decrypt and read export files from AndSafe.

You can also verify the encryption algorithm used by AndSafe by checking the cipher.py. 256-bit keys are derived from SCrypt and used to encrypt content with AES in CBC mode.

How to use

You will need Python 3 to run PyAndSafe.

  1. Clone the project
git clone https://github.com/kitsook/PyAndSafe.git
  1. Create a Python virtualenv and install necessary packages
cd PyAndSafe
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt

For Windows, assuming Python 3.7 installed in default location

cd PyAndSafe
%LocalAppData%\Programs\Python\Python37\python -m venv venv
venv\Scripts\activate.bat
pip install -r requirements.txt
  1. Start the application by running
python main.py

Follow the prompt to select an export file and input password to decrypt the content.

Building standalone executable

Here are the steps to use PyInstaller to generate standalone executable, assuming the virtualenv is setup by following steps above.

pip install pyinstaller
pyinstaller --onefile main.py

The executable will be generated under dist subdirectory