|
-
October 20th, 1999, 10:55 PM
#1
Encryption using CSP
Hi All,
I am using the Cryptographic Service provider for encrypting/decrypting messages. In one of the functions I am encrypting messages using symmetrical algoithm, and in another function, I am decrypting the message using the same algorithm. However, the efficiency (reliability) of encryption/decryption, is for instance, out of 100 encrypted messages, 2 messages are unable to be decrypted fully. In each of the function I am generating the encryption key separately. I have tries it with all the 3 avialable algorithms and all the time the same proble comes up.
ex. Original message : this is the codeguru site, and today is 21/10/99.
Decrypted msg : this is the codeguru s897ew90#$%^&&*)()(&*(_#
Please note the junk, characters coming at the afte codeguru word.
Any help, will be highly appreciated.
Thanks in advance.
-
October 22nd, 1999, 01:13 PM
#2
Re: Encryption using CSP
In reply to:
ex. Original message : this is the codeguru site, and today is 21/10/99.
Decrypted msg : this is the codeguru s897ew90#$%^&&*)()(&*(_#
Please note the junk, characters coming at the afte codeguru word.
Notice that the "good" text in the decrypted result is exactly 20 characters long... Check the declarations of your buffers to make sure you've allocated enough space.
D. Scott
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|