2 つの文字列を比較すると間違った結果が得られるのはなぜですか。
if password==en_pass:
log.info("##### client credentials are OK ####")
else:
print "credentials are wrong "
私はelseブロックにある結果を取得しています
これが私のログメッセージです:
got the password :bmF2ZWVu , encoded password :bmF2ZWVu
エンコードされたパスワードはどこからのものですか。つまり、モジュールbase64
でencodestringメソッドを使用して取得しました。base 64