Skip to main content

An inline run-time file integrity checker

Project description

PLEASE READ THE ENTIRE README

#Navigate to the directory/folder that the file(s) are located in. The files might  be the source file, the encryption key file, the hash file, or any combination of these files.  
cd /PATH/TO/YOUR/WORKING-DIRECTORY

#PIP install the required dependencies once in the working directory
PIP install cryptography
PIP install Verypy

#This file will need to be created and placed in the working directory for the VeryPy package to work. You should call this file VeryPy.py once it is created and saved. 

import VeryPy
import cryptography

if __name__ == '__main__':
  VeryPy(sys.argv[1], sys.argv[2], sys.argv[3])


#Specify the file being tested for changes, a hash file for the hash to be placed, and an encryption key. (Either provide a Fernet encryption key file or let the program generate one for you if this is being ran for the first time. The key.key file should be placed somewhere safe and only provided upon run-time!)
python VeryPy.py sample.txt hash.txt key.key
#If this is the first time running Verypy, the current directory may look like this. In this case, the key.key and hash.txt will be generate for you. The key.key will contain the encryption key that is used to encrypt/decrypt the hash.txt file. The hash.txt file will contain the new hash digest of the sample.txt file, which will then be encrypted. 

#If the key and hash are being generated for the first time, line 13 will need to be ran again to run the actual script to decrypt the hash.txt file so that it can be read from and then re-encrypted. 
python VeryPy.py sample.txt hash.txt key.key

initial setup sample

Working-Directory/
---sample.txt
---VeryPy.py
If the intial setup of has already been completed and the hash.txt and key.key files have already been generated or provided, line 13 will be the only command that needs to be ran from the command line for every subsequent use. 

sample after running line 10

Working-Directory/
---sample.txt
---VeryPy.py
---key.key
---hash.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

VeryPy-1.0.5.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

VeryPy-1.0.5-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file VeryPy-1.0.5.tar.gz.

File metadata

  • Download URL: VeryPy-1.0.5.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.1

File hashes

Hashes for VeryPy-1.0.5.tar.gz
Algorithm Hash digest
SHA256 e61537d4531d650676f710d8ba3108cd5e92638b97a1dbdf8b6fb021dac2cf81
MD5 73e048b673a551e974c431b9a1aff875
BLAKE2b-256 b6d6a5a5c9dc528b3674bd5b1c0a44d0769b111080eb316f922ddec2f2c33bb1

See more details on using hashes here.

File details

Details for the file VeryPy-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: VeryPy-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.1

File hashes

Hashes for VeryPy-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5efe55ecafbafec32f638995365194e6d8ed5a78305ff3748752e382697fcc44
MD5 1f8f1eee52a0bb4d808d8caaa4cbf0b2
BLAKE2b-256 74890723ac65409f909ee61a55fcf2f23e0ad1cb89c98b6ac9138a2b1487994c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page