Search:

Type: Posts; User: Sir Galahad

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds; generated 52 minute(s) ago.

  1. Replies
    15
    Views
    1,459

    Alright, so I've incorporated the memory-hardness...

    Alright, so I've incorporated the memory-hardness parameter into each of the language implementations. It's an important addition I think, and doesn't seem to impact overall performance either.
  2. Replies
    15
    Views
    1,459

    I might also add that different values of...

    I might also add that different values of "rounds" and "cost" may result in the same hash for a given set of inputs (password and salt(s)). If "cost" is unspecified/zero then it will, if only...
  3. Replies
    15
    Views
    1,459

    Okay, so revised once again. This version is a...

    Okay, so revised once again. This version is a lot more straightforward though. The optimal skip distance is simply the cost divided by the average output length, plus one. It's stochastic enough to...
  4. Replies
    4
    Views
    277

    Scan past the colon and leading whitespace, then...

    Scan past the colon and leading whitespace, then copy the rest into a buffer. The strchr() function will take care of the first bit of the task:



    #include <stdio.h>
    #include <string.h>

    int...
  5. Replies
    15
    Views
    1,459

    No, it wasn't skipping in large enough steps....

    No, it wasn't skipping in large enough steps. Also had an indexing issue there. Fixed.
  6. Replies
    15
    Views
    1,459

    After a few days mulling over this, I think I've...

    After a few days mulling over this, I think I've finally found an acceptable solution. I've posted the updated (Javascript) implementation to the sandbox.

    Essentially, the algorithm works by...
  7. Replies
    15
    Views
    1,459

    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...
  8. Replies
    15
    Views
    1,459

    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...
  9. Replies
    5
    Views
    565

    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.
  10. Replies
    15
    Views
    1,459

    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.
  11. Replies
    15
    Views
    1,459

    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...
  12. Replies
    15
    Views
    1,459

    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.
  13. Replies
    15
    Views
    1,459

    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...
  14. Replies
    15
    Views
    1,459

    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...
  15. Replies
    15
    Views
    1,459

    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...
  16. Replies
    17
    Views
    853

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

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

    Exactly, fgets() is for text, not binary data.
  18. Replies
    17
    Views
    853

    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...
  19. Replies
    9
    Views
    806

    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...
  20. Replies
    9
    Views
    806

    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).
  21. Replies
    9
    Views
    806

    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...
  22. Replies
    17
    Views
    853

    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;...
  23. 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);...
  24. Replies
    3
    Views
    358

    Here's a hint: #include ...

    Here's a hint:



    #include <limits.h>
    #include <stdbool.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
  25. Replies
    7
    Views
    336

    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() {
Results 1 to 25 of 204
Page 1 of 9 1 2 3 4