Skip to content

Telmediq/jasypt-2-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jasypt 2 Python

Description

This project allows for python to decrypt ciphertext that has been encrypted with the JASYPT Java library. It assumes that the encryption has been done in the format:

PBEWITHSHA256AND256BITAES-CBC-BC

The purpose of this library is to provide the ability for Python applications (such as Django and its custom fields) to access information from a database that has been encrypted using the JASYPT field-level method.

Installation

pip install Jasypt2Python

Usage

from j2p.JASYPT import Decryptor


my_password = "password used for encryption"
some_ciphertext = "..."

decryptor = Decryptor(my_password)
plaintext = decryptor.decrypt(some_ciphertext)

print plaintext

Requires

About

Jasypt decryption library in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages