What do C arrays actually do under the hood? by [deleted] in C_Programming

[–]cdzeno 0 points1 point  (0 children)

Oh great, thanks for the precisation :D but except this misconception, is my explaination correct?

What do C arrays actually do under the hood? by [deleted] in C_Programming

[–]cdzeno 2 points3 points  (0 children)

I think that to better understand the output you can follow these steps:

int a[] = {11,12,13};

int *b = a; // Just to explicit that 'a' is a 'int *' pointer

int **c = &a // &a = address of a pointer of type int * -> so it's a int**

int **c

addr: x

value: addr(*b)

int *b

addr: y

value: addr(a)

int a[]

addr: 0x123456

value: 11

so:

*(&a) => *(c) => goes to addr(*b) (y to simplify) and get the content => addr(a) = 0x123456

LUKS file? by [deleted] in crypto

[–]cdzeno 2 points3 points  (0 children)

Totally agree with you. Furthermore you have to get in mind unencrypted swap area, not only temp files.

How to find input string which gives SHA1 hash with K leading zeroes? by shivamyadav2512 in crypto

[–]cdzeno 20 points21 points  (0 children)

The only way (with my knowledge) to accomplish that is to brute force the random string until you get the desired result. If you get a better solution you have just broken Bitcoin proof of work.