jcstill/DBPBE

Decrypt not working properly

jcstill opened this issue · 1 comments

The Decryption does not work with all characters. May be related to data points being too close together. Possibly relates to issue #1

TESTING CONVERTING TO AND FROM DISTANCES WITH STRINGS MODE: 12
enter string to encrypt: hello world
h:	  -138477048.1200000000, -1751192248.2300000000
e:	  4181663239.8999999999,  1700677087.1899999999
l:	  -474185188.1600000000, -1818545796.3300000000
l:	  -474185188.1600000000, -1818545796.3300000000
o:	   725966293.1700000000, -1869060957.0000000000
 :	 -2685665120.1399999999,  -538828384.3100000000
w:	  1397382573.3100000001,  2003768053.7000000000
o:	   725966293.1700000000, -1869060957.0000000000
r:	  -977747398.2300000000, -1919576118.3000000000
l:	  -474185188.1600000000, -1818545796.3300000000
d:	 -4097736204.8000000000, -1683838700.2500000000

Keys:
0:	 -3103956898.2239118924,  1015321910.2968752290
1:	  3302358380.2560894249, -1945281942.4813867650
2:	  -792068139.6978473222,  3816983449.1042257112

Encrypted Data:
4055572873.3068013105
3446305159.8172010418
5606403652.1974952049
7317784672.6677394998
3750492538.6188568436
5405252672.5283556636
3866071058.0271460970
3778669524.4339952695
5644487527.4043140365
3866071058.0271460970
3778669524.4339952695
5644487527.4043140365
4794577789.2461678572
2577519316.1308354330
5885195793.4771858985
1609456787.1922618542
6150978544.3121804134
4749611168.5538045471
4608587941.7016344802
4384510086.3597195502
2842788155.1078465139
4794577789.2461678572
2577519316.1308354330
5885195793.4771858985
3624140349.9486861713
4280182970.9051992777
5739563786.3365546209
3866071058.0271460970
3778669524.4339952695
5644487527.4043140365
2876293676.1927893879
7404711502.5964999376
6417669801.0619285358

Decrypted Data:
helln wnr

This could also be caused by get_single() not doing what it is supposed to do.

Also could relate to converttodata() not being tested enough.

I don't think this relates to #1, But still looking into