nForce6791 / python-ransomware

Python Ransomware, it's somewhat simple
1 stars 0 forks source link

Use Salsa20 instead of Fernet. #1

Open fireforrl opened 2 years ago

fireforrl commented 2 years ago

What do you think about the idea?

nForce6791 commented 2 years ago

Probably could try, but I've got no clue as I'm not too good with python. I'll see if I can later on today.

fireforrl commented 2 years ago

Probably could try, but I've got no clue as I'm not too good with python. I'll see if I can later on today.

You can directly use it with pycryptodome (from Crypto.Cipher import Salsa20). Take a look at this: https://pycryptodome.readthedocs.io/en/latest/src/cipher/salsa20.html

nForce6791 commented 2 years ago

Thanks. Will try out soon, hopefully I can get it all working.

fireforrl commented 2 years ago

Thanks. Will try out soon, hopefully I can get it all working.

Good luck! Use get_random_bytes(from Crypto.Random import get_random_bytes) for the salsa key.