【发布时间】:2020-11-09 16:45:56
【问题描述】:
我已将二进制数据存储到 blob 中的 oracle 数据库中。但我无法检索相同的数据。这是我的代码
app=input("\nEnter the name of the app: ")
username=input("\nEnter the username: ")
cur.execute("select password from passwordM where app=:va and username=:vu", va=app, vu=username)
if cur.fetchone()==None:
print("\nNo entry exists with app: '{}' and username: '{}'\nCheck again and enter correct details!!".format(app,username))
continue
for x in cur:
ctext=x[0]
print(RSADecryption(ctext))
属性 'app' 和 'username' 是 varchar2 类型,而 'password' 是 blob。
这就是我得到的错误。
Traceback (most recent call last):
File "C:\Users\admin\Desktop\MLI-22 Project\main.py", line 88, in <module>
print(RSADecryption(ctext))
NameError: name 'ctext' is not defined
【问题讨论】: