Reputation: 161
I have used human readable password while connecting to to taradata using tearadatasql package , i am able to connect successfully . but when I try to use the base64 encoded bytes of the same password(base64encoded ) instead of readable , I get an error "The UserId, Password or Account is invalid", the cred
base64encoded = base64.b64encode(bytes('readablepassword','utf-8')) teradatasql.connect('{"host":"server","user":"username","password":"'+base64encoded+'","logmech":"LDAP"}')
can anyone knows , how to pass the base64 encoded password here?
Upvotes: 0
Views: 655
Reputation: 450
@Fred is correct. The Teradata SQL Driver for Python does not directly support a password specified in base64 encoding.
As @Fred noted, the Teradata SQL Driver for Python does offer a "Stored Password Protection" feature.
Upvotes: 1