У меня выходит ошибка module 'rsa' has no attribute 'newkeys'
Вот код:
import rsa
pubkey, privkey = rsa.newkeys(512) # Генерируем 2 ключа
mess = 'Hello, Codeby!'
cipher = rsa.encrypt(mess, pubkey) # Шифруем print(cipher)
mess = rsa.decrypt(crypto, privkey) # Расшифровываем print(mess)
Вот ошибка:
Traceback (most recent call last): File "C:/Users/user.DESKTOP-N6AQFSN/AppData/Local/Programs/Python/Python38-32/rsa4.py", line 2, in pubkey, privkey = rsa.newkeys(512) # Генерируем 2 ключа AttributeError: module 'rsa' has no attribute 'newkeys'
В чем может быть проблема?
Библиотеку RSA установил. pip install rsa