This is rare for small-time scammers, but possible. The "generator" encrypts every file on your hard drive (Documents, Photos, Work projects) and demands a $500 Bitcoin payment to unlock them. Because you were trying to commit fraud, you are too embarrassed to go to the police.
If you are a developer who genuinely wants to explore payment APIs (not fraud), you might still stumble upon these scam repos. Here is a checklist to identify a malicious "generator" repository: Paysafecard-generator Github-
The money is not stored on your device; it is stored on Paysafecard’s heavily fortified servers. The 16-digit code is simply an access key to their database. This is rare for small-time scammers, but possible