You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not able to encrypt a string with capital letters or Special characters in the string.
Please find the log when I was trying to encrypt a String "Testtesttest12" with a capital letter.
Traceback (most recent call last):
File "leap_data_encryption.py", line 41, in
df['enc_DEVICE_TYPE']=df['DEVICE_TYPE'].apply(encrypt)
File "/opt/usr/local/lib/python3.6/site-packages/pandas/core/series.py", line 3591, in apply
mapped = lib.map_infer(values, f, convert=convert_dtype)
File "pandas/_libs/lib.pyx", line 2217, in pandas._libs.lib.map_infer
File "leap_data_encryption.py", line 30, in encrypt
print(eS.encrypt('Testtesttest12'))
File "/opt/usr/local/lib/python3.6/site-packages/pyffx/codecs.py", line 15, in encrypt
return self.unpack(self.ffx.encrypt(self.radix, self.pack(v)), type(v))
File "/opt/usr/local/lib/python3.6/site-packages/pyffx/codecs.py", line 42, in pack
raise ValueError('non-alphabet character: %s' % e)
ValueError: non-alphabet character: 'T'
The text was updated successfully, but these errors were encountered:
Not able to encrypt a string with capital letters or Special characters in the string.
Please find the log when I was trying to encrypt a String "Testtesttest12" with a capital letter.
Traceback (most recent call last):
File "leap_data_encryption.py", line 41, in
df['enc_DEVICE_TYPE']=df['DEVICE_TYPE'].apply(encrypt)
File "/opt/usr/local/lib/python3.6/site-packages/pandas/core/series.py", line 3591, in apply
mapped = lib.map_infer(values, f, convert=convert_dtype)
File "pandas/_libs/lib.pyx", line 2217, in pandas._libs.lib.map_infer
File "leap_data_encryption.py", line 30, in encrypt
print(eS.encrypt('Testtesttest12'))
File "/opt/usr/local/lib/python3.6/site-packages/pyffx/codecs.py", line 15, in encrypt
return self.unpack(self.ffx.encrypt(self.radix, self.pack(v)), type(v))
File "/opt/usr/local/lib/python3.6/site-packages/pyffx/codecs.py", line 42, in pack
raise ValueError('non-alphabet character: %s' % e)
ValueError: non-alphabet character: 'T'
The text was updated successfully, but these errors were encountered: