GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - typek22/cfmx_compat_python: A Python implementation of ColdFusion default encryption and decryption with CFMX_COMPAT and UUEncoding based on Railo source.

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
coder
coder
 
 
crypt
crypt
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
main.py
main.py
 
 

Repository files navigation

Python CFMX_COMPAT ColdFusion Encryption

This project provides a Python implementation of the ColdFusion encrypt and decrypt functions with the default configuration. This project provides the exact same functionality as ColdFusion's built-in encryption and decryption, ensuring compatibility for applications that need to work with ColdFusion-encrypted data.

The implementation is based on the open-source Railo project, ensuring accuracy and compatibility with ColdFusion's encryption standards.

⚠️ The CFMX_COMPAT algorithm, used in ColdFusion for encryption, is known for its significant security weaknesses. It should NOT be used for encryption of any data.

Instead, it can be used for:

  • Interoperability with ColdFusion
  • Decoding ColdFusion-Encrypted Data
  • ColdFusion to Python Migration
  • Reverse Engineering & Security Audits

Features

  • Compatible with ColdFusion's default encryption and decryption functions.
  • UUCoder: Implements encoding and decoding using UUEncoding format.
  • Transformer: Implements a LFSR-based transformation algorithm for encryption/decryption.
  • CFMXCompat: Provides a high-level interface for encrypting and decrypting data using both the UUCoder and Transformer.

Requirements

  • Python 3.x
  • No external dependencies are required, only built-in Python libraries.

Usage

Run right away

$ git clone https://github.com/typek22/cfmx_compat_python.git
$ cd cfmx_compat_python
$ python main.py

Adjust the parameter in main.py and run

key = "86090ec89fa81d7b"
encrypted_text = "#2 B+"
plain_text = "Cat"
$ python main.py

ENCRYPTION original: 'Cat', encrypted: '#3P:8'.
DECRYPTION original: '#2 B+', decrypted: 'Dog'.

Or incorporate into your project

from crypt.cfmx_compat import CFMXCompat

key = "e3548384e1ee4c26"
encrypted_text = "&6%Z,LJ6Z"
plain_text = "Rabbit"

decrypted = CFMXCompat.decrypt(encrypted_text, key)
encrypted = CFMXCompat.encrypt(plain_text, key)

This is the same as following CFML code

<cfscript>
    key = "e3548384e1ee4c26";
    encrypted_text = "&6%Z,LJ6Z"
    plain_text = "Rabbit"
	
    decrypted = decrypt(encrypted_text, key);
    encrypted = encrypt(plain_text, key);
</cfscript>

About

A Python implementation of ColdFusion default encryption and decryption with CFMX_COMPAT and UUEncoding based on Railo source.

Topics

cfmx-compatcoldfusiondecryptencryptpythonrailosecurityuuencode

Resources

Readme
LGPL-2.1 license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.