encryption - 将加密消息转换为字符串
问题描述
这是我的加密字符串:
b'pN\xe89\xd8\x83x\x9d\ts\xdb\x91\x87\xb4L\x1bU\xf2\x1fQqL\rz\x8d\xbb\xd0J\x99\xb7\xc0\x8a\x17n@\xdc\x16s\xfaf\x17\x00:\x0f\x86'
如何将其转换为可以写入的字符串ConfigParser
稍后,读取此字符串并将其转换回用于加密的正确数据类型?
encrypted username are of type:<class 'nacl.utils.EncryptedMessage'>
解决方案
推荐阅读
- java - 没有从 RandomAccessFile java 得到正确的输出
- magento - 将多个名义/经常性产品添加到购物车
- machine-learning - 为什么 GridSearchCV 在拟合数据的同时克隆估计器?
- jenkins - “Webhook to Jenkins for Bitbucket Server”仅在手动执行时有效
- android-studio - 如何在 Android Studio 编辑器中更改参数名称指示器的主题颜色?
- r - 有条件地替换整个数据框中的值
- c# - 在 ASP.NET 页面上从桌面显示 PDF?
- java - 在 500 毫秒内更改 JButton 颜色
- php - Laravel Relation 'with' GROUP_CONCAT 值
- r - 基于 countrycode 和 countryname 的不带分隔符的拆分字符串