18
Haxk20
70d

I have been tired of all those online password generators that can do only like 256 characters and even then it takes them hell of a time.
I present to you my take on password generator that is simple as fuck and written in C in less then 1 hour.
Oh yeah EDIT:
Mine can do 20000000 characters in few minutes.
Will be on my github in few days.
Android error is still here and he doesnt wont to go anywhere as it seems. I guess i will have to make him go away the hard way.

Comments
  • 4
    But...why?
  • 2
    What's wrong with pwgen?
  • 0
    @PrivateGER Simple. Because i fucking can !!!
  • 0
    @d4ng3r0u5 IDK i just dont like having password generated by not program that is simple and that i can check wtf its doing. Even begginer will be able to understand my code so even he can check wtf its doing you know ?
  • 1
    uuidgen | sed 's/\-//g'

    ?
  • 1
    @monzrmango Did you even read the fucking rant ? WRITTEN IN C !
  • 5
    Yeah, I've read it you sperg.
  • 3
    @monzrmango Then you should know that its surely not written in bash. Not to be offensive in any way. Im sorry if it sounded like that.
  • 1
    @Haxk20

    No worries lol. If it's any consolation, I didn't mean to undermine what you've accomplished.
  • 0
    Try hashing that and see how well most modern systems deal with it.

    Bonus points: try it in anything to do with JS. See how it handles large numbers. Go in. I'll wait.
  • 1
    @Charon92 JS is not meant for large numbers. All numbers are floating points. By the time you get to 2^52 or something, you can't rely on any integers.

    But that's because it was never meant to do numeric computations.

    Python on the other hand ....
  • 2
    Isn't 20 million characters like close to 20mb in size?
  • 0
    @Teabagging4Life and ? Its not even storing the number inarray.
  • 1
    Would love to see your code 😊

    * waiting for the link *
  • 1
    @desmondanimus Wait a sec i will create a github repo
  • 1
  • 0
    You would want to do rand() % 70. If rand() % 71 is 70 you would point outside the alphabet array.
  • 0
    @Teabagging4Life The alphabet array has 70 characters in it so rand() % 71 is perfect. It doesnt point outside of the array. Try to generate a looooot of digits and you will see thet it will generate them no issue and will not throw any error on the way.
  • 0
    @Haxk20 thanks mate :)
  • 2
    @Haxk20 The alphabet has 70 characters so the positions are 0-69 thus you need modulo 70. If rand() % 71 gives 70,you will take the element alphabet[70] even though the element does not exist, since elements go up to alphabet [69].It will not crash since your program's memory space does probably not end right after the array. But it's still wrong, because the character you will get there is truly random, whatever happened to be in that position of memory at that moment, so you can also get non - printable characters, e.g. character '\0' ,and since it will be different each time even with the same seed, password recovery will not always work.
  • 2
    @Haxk20 P.S. Saying "I run it many times and it did not crash" is not a proper way of analyzing a program. A faulty program crashing is the good possibility. The bad possibility is it will not crash and keep working, doing the WRONG work.
  • 1
    Would be useless as any (sane) password generally is limited in terms of length.

    Bcrypt for instance is cut off after 72 characters.
  • 0
    @Teabagging4Life Damn yeah my fucking bad. I counted 71 characters in the alphabet thats why i gave it 70 char array. Fix is there already. Thanks. I have a loot of experience in C. 10 years but any good programer can do a fucking stupid mistake.
  • 1
    Pretty basic and spaghetti for 10y of experience.. But if it works it works
  • 1
    @wholl0p yeah its bad code but oh well it works. And it was done for fun and not for profit so it doesnt need to be good. Also 10years of coding doesnt mean good code.
  • 1
    @Haxk20 but it should
  • 1
    @wholl0p but well it doesnt. I never coded for money and im programming for 10 years just as a hobby and few small projects and few "big" ones. Nothing "huge". Been trying to get job but wasnt able because of my age few years back. Im 18 now (yes im coding from when i was 8 because of my great dad) so now they should accept me.
  • 1
    This was for jobs in my area. I didnt want to do remote. But well if i will be unable to find local job then well only option will be remote.
  • 1
    @Haxk20 Then I will cross my fingers for you to get the job you want!
  • 1
    @wholl0p thanks
Your Job Suck?
Get a Better Job
Add Comment