Reputation: 1
I have been recently occupied in learning assembly and i'm now playing with masm32 and crypto API, but i need a little help to start. How can i decode an input string base64 encoded using CryptBinaryToString? It seems I wrong something because I can't decode a simple message passed through a Text box.
I have tried to put encoded string into a buffer without success.
Upvotes: 0
Views: 200
Reputation: 1
Thanks for your advice, I finally managed to find the error. I first used CryptStringToBinaryA passing only the pointer to the text to be decoded and the address of the variable containing the length of the decoded string, then I allocated in memory the space necessary to contain the plaintext and I called again the function with all the parameters. I know that asm is not useful for this task but as I told It was just an exercise.
Upvotes: 0