1. "size" is calculated by multiplying by 2 the sum of both the e-mail and password strings.
2. "input" is assigned a block of memory the size of, well, "size".
3. cp is assigned the value of input.
3. "cp" recieves, character by character, the password (except for the newline (?) at the end), with a null character between each letter.
4. Where the newline was, two null characters are placed instead.
5. "cp" is then assigned the lower-case e-mail with null characters in between each letter and two more at the end.
6. SHA generated with input (?).
And I think that's it. I don't get it: what's the purpose of cp if input is used at the end? There is no reassignment of cp's value to input, if I'm correct. I'm aware they are pointers, so maybe I'm confused on that part, but if both point to the same address, why even have two values at all?
P.S. : Still learning C++. Started OOP; woop!
![Smile :)](./images/smilies/icon_e_smile.gif)