Coder Social home page Coder Social logo

christopheleroy / pbewithmd5anddes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from binsgit/pbewithmd5anddes

0.0 1.0 0.0 148 KB

C & Python implementation of PBEWithMD5AndDES by Jasypt Java Package: org.jasypt.encryption.pbe.StandardPBEStringEncryptor

License: Apache License 2.0

Makefile 2.38% C 83.69% Python 13.93%

pbewithmd5anddes's Introduction

PBEWithMD5AndDES in C and Python

C & Python 2.x implementation of PBEWithMD5AndDES by Jasypt Java Package: org.jasypt.encryption.pbe.StandardPBEStringEncryptor

PBEWithMD5AndDES seems popular in the Java world, and many are asking for implementation of XX language.

The C implementation uses OpenSSL. And I've updated the [Python one on stackoverflow] 1.

Version

0.1

C Example Usage

$ make
$ ./example
$ ./encrypt input=<your input string> password=<your password string>
$ ./decrypt input=<your input string> password=<your password string>

C Example Test

Suppose that your jasypt is extracted into ${JASYPT_PATH}
$ ${JASYPT_PAHT}/bin/encrypt.sh input=org.jasypt.encryption.pbe.StandardPBEStringEncryptor password=jasypt

----ENVIRONMENT-----------------

Runtime: Sun Microsystems Inc. Java HotSpot(TM) Server VM 20.1-b02



----ARGUMENTS-------------------

input: org.jasypt.encryption.pbe.StandardPBEStringEncryptor
password: jasypt



----OUTPUT----------------------

OyKMSNRI+9UvzG2PtDkYZUgoMIZa+gI6roqTdNY19dqBRGeM+UvnhBodYHZvG8XKZ5JMfEnI43r9jNaeH2wlrg==


$ ./decrypt input="OyKMSNRI+9UvzG2PtDkYZUgoMIZa+gI6roqTdNY19dqBRGeM+UvnhBodYHZvG8XKZ5JMfEnI43r9jNaeH2wlrg==" password=jasypt

----ARGUMENTS-------------------

input: OyKMSNRI+9UvzG2PtDkYZUgoMIZa+gI6roqTdNY19dqBRGeM+UvnhBodYHZvG8XKZ5JMfEnI43r9jNaeH2wlrg==
password: jasypt



----OUTPUT----------------------

org.jasypt.encryption.pbe.StandardPBEStringEncryptor


$ ./encrypt input=org.jasypt.encryption.pbe.StandardPBEStringEncryptor password=jasypt

----ARGUMENTS-------------------

input: org.jasypt.encryption.pbe.StandardPBEStringEncryptor
password: jasypt



----OUTPUT----------------------

5F09DiqsF3B3gFGhcrVlYxHga7PohvZhYnmUIZ/E9u0XXuTgbjyDMTzKkOweTNEmP9zk3EKD1p/oNwzgfINgTg==


$ ${JASYPT_PAHT}/bin/decrypt.sh input="5F09DiqsF3B3gFGhcrVlYxHga7PohvZhYnmUIZ/E9u0XXuTgbjyDMTzKkOweTNEmP9zk3EKD1p/oNwzgfINgTg==" password=jasypt

----ENVIRONMENT-----------------

Runtime: Sun Microsystems Inc. Java HotSpot(TM) Server VM 20.1-b02



----ARGUMENTS-------------------

input: 5F09DiqsF3B3gFGhcrVlYxHga7PohvZhYnmUIZ/E9u0XXuTgbjyDMTzKkOweTNEmP9zk3EKD1p/oNwzgfINgTg==
password: jasypt



----OUTPUT----------------------

org.jasypt.encryption.pbe.StandardPBEStringEncryptor

License

MIT for C implementation

[Creative Commons] 2 for Python 2.x implementation

pbewithmd5anddes's People

Contributors

binsgit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.