0ng / format-preserving-encryption Goto Github PK
View Code? Open in Web Editor NEWFPE Implementation in C [Preparing for improvement]
License: MIT License
FPE Implementation in C [Preparing for improvement]
License: MIT License
I just wanted to let you know that I have used some of your test vectors to verify my C-implementation of the FPE algorithms. Of course I have mentioned the source and credit. Please feel free to check out the testvectors
folder of this repository and inform me of any issues.
Cheers
Hello, I was hoping to test your FPE in C, I downloaded the files, (running debian mx linux) ensured libraries up to date, installed openssl, installed updated make and gcc, uncompressed files in /home/testing directory.
Next, I ran $: make example, and this built the makefile as downloaded.
when I try to run example, I get command not found.
Looking at example.c it looks like I need 4 arguments after the program name
<key>: the encryption key, in hexadecimal format.
<tweak>: the tweak value, in hexadecimal format. This can be an empty string if not needed.
<radix>: the radix used in the encryption scheme. This should be an integer between 2 and 36.
<plaintext>: the plaintext to be encrypted, in string format.
so it looks like i must type something like "example 5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a "" 10 1234567890"
This is not working either. Can you help me on how to test this code? (test.py ran ok)
also can this code be altered to allow Base62 radix?
I've compiled the example and src using Visual Studio 2010 and linked to the openssl static library.
I'm getting this error while stepping through the example.cpp (I changed the files to cpp so they will compile with VS 2010) file.
The error happened at line 196 (OPENSSL_free(Bytes);) in ff1.cpp.
Any idea what caused this?
My operating environment is:win10+vs2017community+openssl1.0.1
but when I run example.c,The following situation has arisen:
C2057+C2466+C2133,what should I do?
Thank you very much for your prompt reply.
Hi,
When I tried radix 62 and radix 95, i get the below error. Is it not supported ?
I added the below test case under AES-256 in test.py
[
95,
"2B7E151628AED2A6ABF7158809CF4F3CEF4359D8D580AA4F7F036D6F04FC6A94",
"3737373770717273373737",
"0123456789abcdefghi",
"xs8a0azh2avyalyzuwd",
],
Traceback (most recent call last):
File "test.py", line 234, in
main()
File "test.py", line 198, in main
results = regexp.findall(output.decode('utf-8'))[0]
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa6 in position 318: invalid start byte
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.