Search:

Type: Posts; User: Sir Galahad

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    258

    Well that doesn't scale very well. Performing...

    Well that doesn't scale very well. Performing calculations on larger and larger operands just has too much effect on execution time. Request a cost of say 10,000,000 and there's no telling just how...
  2. Replies
    10
    Views
    258

    Thanks for the input, laserlight. I've created a...

    Thanks for the input, laserlight. I've created a set of "sandbox files" containing a memory-hard version of Finabel.

    Example usage:



    It was a simple modification actually, just increase the...
  3. Replies
    5
    Views
    195

    Unless you're unwilling to make a sincere effort,...

    Unless you're unwilling to make a sincere effort, don't expect help from anyone here.
  4. Replies
    10
    Views
    258

    For what it's worth, I went ahead and changed the...

    For what it's worth, I went ahead and changed the default number of rounds to 1000. It's a breaking change, but results roughly the same run time as scrypt and argon2.
  5. Replies
    10
    Views
    258

    Okay, so here's a comparison of finabel and...

    Okay, so here's a comparison of finabel and argon2:



    As you can see, argon2 is about 100 times slower. And the default number of rounds for that algorithm is actually just 2. Which basically...
  6. Replies
    10
    Views
    258

    Point taken, and I will definitely do some...

    Point taken, and I will definitely do some comparison tests to see how it fares against these as well.
  7. Replies
    10
    Views
    258

    I should also point out that the proper selection...

    I should also point out that the proper selection of the "rounds" security parameter effectively mitigates the issue.

    Compare:



    And remember, the algorithm is not parallelizable between...
  8. Replies
    10
    Views
    258

    To be fair, this algorithm does no worse than the...

    To be fair, this algorithm does no worse than the most common ones in use today.

    Consider:



    (The one used here isn't even close to the fastest SHA-256 implementations, by the way.)

    With...
  9. Replies
    10
    Views
    258

    Want to volunteer?

    I've been working on this project (see link in signature) which currently supports 4 languages (C++, Java, Python 3, and Javascript). The algorithm is very simple. The Python version for example is...
  10. Replies
    17
    Views
    283

    Interesting caveat. I wasn't aware there was a...

    Interesting caveat. I wasn't aware there was a distinction.
  11. Exactly, fgets() is for text, not binary data.

    Exactly, fgets() is for text, not binary data.
  12. Replies
    17
    Views
    283

    It really just depends on the convention you want...

    It really just depends on the convention you want to go with. I think hamster_nz's approach is a good one, although I would recommend encoding those return values as enums/defines so that the usage...
  13. Replies
    9
    Views
    225

    I don't see how you could possibly know how many...

    I don't see how you could possibly know how many characters were read without checking the return value of fread().



    It doesn't matter what language it's in. Just parse it according to the...
  14. Replies
    9
    Views
    225

    Well you definitely don't want to read it in 8...

    Well you definitely don't want to read it in 8 bytes at a time. Read a byte, determine the length, then read the rest (all in one go if you wish).
  15. Replies
    9
    Views
    225

    When you pass "r" to fopen() it opens the file in...

    When you pass "r" to fopen() it opens the file in read-text-mode. That could be problematic, as it basically gives the operating system a license to preprocess the data. So for this task, opening the...
  16. Replies
    17
    Views
    283

    Your function need to return a value. Maybe...

    Your function need to return a value. Maybe something like this:



    #include <stdio.h>

    int order(unsigned array[], size_t length) {
    int result = 0;
    for (size_t index = 1; index < length;...
  17. You should also be checking the FILE* returned by...

    You should also be checking the FILE* returned by fopen(). Otherwise, the program will crash if the file doesn't exist.

    Reading the file will require a loop.



    for(;;)
    {
    int c = fgetc(f);...
  18. Replies
    3
    Views
    172

    Here's a hint: #include ...

    Here's a hint:



    #include <limits.h>
    #include <stdbool.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
  19. Replies
    7
    Views
    193

    Maybe just print it within the XOR loop? ...

    Maybe just print it within the XOR loop?



    #include <stdio.h>

    #define XOR_KEY 0x6F

    int main() {
  20. You should be incrementing the counter inside of...

    You should be incrementing the counter inside of push_int() rather than outside of the function.

    And the resize calculation should probably be something more like this:



    int* push_int (int...
  21. Replies
    5
    Views
    349

    To be safe, you should limit the maximum number...

    To be safe, you should limit the maximum number of characters in the scanf call, ie:



    scanf("%30s", name);



    It's one less than the size of the actual buffer to ensure room for the null...
  22. I'm running Firefox on Ubuntu. No add-ons, except...

    I'm running Firefox on Ubuntu. No add-ons, except for HTTPS Everywhere (which doesn't mess with graphics).
  23. MODERATORS: Better code formatting please?

    Code posted to the forum seems to overlap:

    16206
  24. Replies
    6
    Views
    507

    You could also simplify things quite a bit. Most...

    You could also simplify things quite a bit. Most of the arguments to your functions are actually just constants, so they could really be consolidated inside those functions:



    #include <stdio.h>...
  25. Replies
    6
    Views
    507

    Your return statement is malformed. The main()...

    Your return statement is malformed. The main() function should return 0 on success or nonzero (usually 1) on error.

    Also pay attention to warnings. The expression



    sizeof(abw_to_abv) /...
Results 1 to 25 of 199
Page 1 of 8 1 2 3 4