Skip to main content

Encryption and hashing functions for Office VBA files.

Project description

Coverage Status Build Status

MS-OVBA-Crypto

Cryptographic Functions for Office Visual Basic files.

Installation

Use the package manager pip to install MS_OVBA_Compression.

pip install ms_ovba_crypto

Usage

Microsoft VBA files use a custom encryption algorithm to obfuscate visibility and permission fields. The clsid is used as a seed.

import ms_ovba_crypto

data = b'\x00\x00\x00\x00',

clsid = '{9E394C0B-697E-4AEE-9FA6-446F51FB30DC}'
# Random numbers are used in the obfuscation, so the output is not deterministic.
encrypted = ms_ovba_crypto.encrypt(clsid, data)

data = b'\x41\x43\x5A\x5A\x5E\x5A\x5E\x5A\x5E\x5A\x5E'

# returns b'\x00\x00\x00\x00'
ms_ovba_crypto.decrypt(data)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

ms_ovba_crypto-1.0.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

ms_ovba_crypto-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file ms_ovba_crypto-1.0.0.tar.gz.

File metadata

  • Download URL: ms_ovba_crypto-1.0.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for ms_ovba_crypto-1.0.0.tar.gz
Algorithm Hash digest
SHA256 47013f3b608979edb3e9f06635dc8d5fc886c0dc5917b7a0d186b555f62af6cf
MD5 c8da917e991c58a4e8a44cb9986cf3eb
BLAKE2b-256 3d5e08c28b42383e56e45c8f4fc15104ef3e9a04eb55f5476904d5d3f8619b9d

See more details on using hashes here.

File details

Details for the file ms_ovba_crypto-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ms_ovba_crypto-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64ac338a410fdf00d738eed59f1295354b3e72c4107fc6132b9a347e143b5a97
MD5 e986c929125134171ba78c176f11b2b7
BLAKE2b-256 0edb58a1248a6e8ff1a8e921919246b22c4ed5460a81ffa4782528494558b218

See more details on using hashes here.

Supported by

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