Categories > Coding > C# >

[Rel] C# Random key generation made by CHAT-GPT3

Posts: 24

Threads: 6

Joined: Sep, 2022

Reputation: 0

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);

    }

}

 

  • 0

Posts: 4

Threads: 2

Joined: Dec, 2022

Reputation: -4

Replied

Can You Make Tutorial ?

  • 0

Posts: 24

Threads: 6

Joined: Sep, 2022

Reputation: 0

Replied

@XeroxHub No, if you want to skid this code, learn how to use it. It's so simple and you want a tutorial?

  • 0

aeon

Owner of Voyager

vip

Posts: 316

Threads: 28

Joined: Sep, 2022

Reputation: 12

Replied

cool ig
vouch

  • 0

Posts: 1474

Threads: 95

Joined: Oct, 2019

Reputation: 93

Replied

I Don't Recall A Linkvertise Package Being Available At Any Point.

  • 0

nickk

RealNickk

Posts: 18

Threads: 1

Joined: Dec, 2022

Reputation: 4

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.

  • 0

aeon

Owner of Voyager

vip

Posts: 316

Threads: 28

Joined: Sep, 2022

Reputation: 12

Replied

@NickAcc :skull:

  • 0

Alternate

stop take my rice

vip

Posts: 711

Threads: 115

Joined: Mar, 2022

Reputation: 36

Replied

@nickk

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

  • 0

we are dead

Posts: 24

Threads: 6

Joined: Sep, 2022

Reputation: 0

Replied

@Alternate Bro, I did not skid, I did not even use this code, I just uploaded for all the skids here.

  • 0

Posts: 1996

Threads: 198

Joined: Apr, 2021

Reputation: 13

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.

 

 

  • 0

Random quote here...

Posts: 24

Threads: 6

Joined: Sep, 2022

Reputation: 0

Replied

@VoidableMethod

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..

  • 0

eb_

Formally known as Shade

vip

Posts: 1044

Threads: 4

Joined: Jun, 2020

Reputation: 44

Replied

everyone and their mum is gonna be using this chat bs thing and releasing sh*t that won't even work. 

  • 0

https://media.discordapp.net/attachments/1010636204225601659/1012865624797610044/sKQybOLT.gif

Posts: 1996

Threads: 198

Joined: Apr, 2021

Reputation: 13

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.

  • 0

Random quote here...

Posts: 24

Threads: 6

Joined: Sep, 2022

Reputation: 0

Replied

@VoidableMethod Idk man, thats how it was written let me get a screen shot...

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )