Comments (2)
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from format-preserving-encryption.