0NG / Format-Preserving-Encryption

FPE Implementation in C [Preparing for improvement]
MIT License
44 stars 30 forks source link

Compile Error fixed - BASE62 Radix Possible? #8

Open gratefuldeadbolt opened 1 year ago

gratefuldeadbolt commented 1 year ago

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?

gratefuldeadbolt commented 1 year ago

I found my mistake right after posting. I forgot to include the terminal command ./ before the executable. The example code is now working, I am wondering how we can edit the code to allow for radix62? Thank you.