Skip to content

Commit

Permalink
fix: handle credentials with special characters
Browse files Browse the repository at this point in the history
fix: handle credentials with special characters
  • Loading branch information
chemelli74 authored Sep 7, 2023
2 parents db68478 + 1b4a6cd commit d3b0a14
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/aiovodafone/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import asyncio
import hashlib
import hmac
import html
import re
import urllib.parse
from dataclasses import dataclass
Expand Down Expand Up @@ -109,8 +108,6 @@ async def _get_user_lang(self) -> None:
async def _encrypt_string(self, credential: str) -> str:
"""Encrypt username or password for login."""

credential = urllib.parse.quote(credential)
credential = html.unescape(credential)
hash1_str = hmac.new(
bytes("$1$SERCOMM$", "latin-1"),
msg=bytes(credential, "latin-1"),
Expand Down

0 comments on commit d3b0a14

Please sign in to comment.