Categories > Coding > C# >
[Rel] C# Random key generation made by CHAT-GPT3
Posted
Here you go (Install the linktiverse packages)
using Linktiverse.Keygen;
using Linktiverse.KeyValidator;
//Hi skid!
public class KeySystem
{
private KeyValidator validator;
public KeySystem()
{
// Create a new key validator with a custom validation rule
validator = new KeyValidator((key) =>
{
// Validate the key by checking its length
return key.Length == 16;
});
}
public string GenerateKey()
{
// Generate a new 16-character key
return Keygen.GenerateKey(16);
}
public bool ValidateKey(string key)
{
// Validate the key using the custom validation rule
return validator.ValidateKey(key);
}
}
Replied
Can You Make Tutorial ?
Cancel
Post
Replied
@XeroxHub No, if you want to skid this code, learn how to use it. It's so simple and you want a tutorial?
Cancel
Post
Replied
The class generated by ChatGPT isn't that useful. It's essentially a wrapper class for an API (that doesn't exist?), which in this case, it just creates unnecessary boilerplate code. If you're going to share code, I'd recommend looking over it, as ChatGPT doesn't always provide the best output. This is the same reason StackOverflow banned the use of ChatGPT in their platform.
Cancel
Post
Replied
Nobody can escape WRD >:)
Fr though I haven't done C# in a while but I don't think it's that hard to generate a key with it. The fact you have to use ChatGTP for that is odd.
chatgtp skid
Cancel
Post
we are dead
Replied
@Alternate Bro, I did not skid, I did not even use this code, I just uploaded for all the skids here.
Cancel
Post
Replied
@Element I think this code wasn't made by ChatGPT. As far as I know, there's no Linkvertise API, also it's misspelled.
Cancel
Post
Random quote here...
Replied
1. There are no misspellings.
2. Its made by ChatGPT
3. It's possible that there is no such package... But it could be there..
Cancel
Post
Replied
everyone and their mum is gonna be using this chat bs thing and releasing sh*t that won't even work.
Cancel
Post
https://media.discordapp.net/attachments/1010636204225601659/1012865624797610044/sKQybOLT.gif
Replied
@Element Yes, there are misspellings. I've never heard about anything called "Linktiverse". If it's made by ChatGPT, at least show us the picture.
Cancel
Post
Random quote here...
Users viewing this thread:
( Members: 0, Guests: 3, Total: 3 )
Cancel
Post