GithubHelp home page GithubHelp logo

Comments (2)

0NG avatar 0NG commented on September 26, 2024

It supports.

I have run the code with your test data. Then, I found decrypt(encrypt(plaintext)) == plaintext, so I think there's nothing wrong with the decryption and encryption procedures.

The error comes from my example code. You can look at this line to find my implementation of the (inverse) mapping between numeral string and character string. These implementations only support radix up to 36. Thus, if you need larger radix, you can implement the mappings by yourself.

Hmmm...There is actually something strange... Are you sure that the ciphertext is xs8a0azh2avyalyzuwd? I found the numeral string of the ciphertext is 79 57 54 15 10 8 6 87 3 9 65 1 69 83 1 73 53 46 80 (FF1) and 72 60 77 39 93 64 0 47 34 54 75 0 25 94 49 62 11 75 89 (FF3).

from format-preserving-encryption.

shaakaud avatar shaakaud commented on September 26, 2024

Thank you. I was able to figure out the mapping and inverse mapping part of your code. I was able to modify those and get it working. Thanks for your response.

The ciphertext that i pasted above is wrong. (that ciphertex is for radix 36). I am closing this issue.

Thanks again for your prompt response.

from format-preserving-encryption.

Related Issues (6)

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.