Use the private key to decrypt the encrypted values

for column in df.columns: if re.match(column_pattern, column): decrypted_values = df[column].apply(lambda x: rsa_jiemi(private_key_pem, str(x))) df[column] = decrypted_values

public_key private_key = rsamiyaoshengchengpublic_key_pem = public_keyexportKeyprivate_key_pem = private_keyexportKey# Encrypt the specified columnscolumn_pattern = recompile号 # Regular expression pa

原文地址: https://www.cveoy.top/t/topic/fYTX 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录