mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
9 lines
284 B
Python
9 lines
284 B
Python
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms
|
|
|
|
def get_badly_encrypted_password():
|
|
dangerous = get_password()
|
|
cipher = Cipher(algorithms.ARC4(key), _, _)
|
|
encryptor = cipher.encryptor()
|
|
return encryptor.update(dangerous) + encryptor.finalize()
|
|
|