MCPcopy Index your code
hub / github.com/RNCryptor/RNCryptor-python / post_decrypt_data

Method post_decrypt_data

rncryptor.py:93–96  ·  view source on GitHub ↗

Remove useless symbols which appear over padding for AES (PKCS#7).

(self, data)

Source from the content-addressed store, hash-verified

91 return data
92
93 def post_decrypt_data(self, data):
94 """Remove useless symbols which appear over padding for AES (PKCS#7)."""
95 data = data[:-bord(data[-1])]
96 return to_str(data)
97
98 def decrypt(self, data, password):
99 """Decrypt `data` using `password`."""

Callers 1

decryptMethod · 0.95

Calls 2

bordFunction · 0.85
to_strFunction · 0.85

Tested by

no test coverage detected