dkeasberry
New Member
Hi
PROGRESS VERSION: 10.2A
OS: Windows
I am new to progress in and I am trying to work out how to do the following:
I need to create a payment message to be digitally signed (Hashed) using SHA1 and RSA signed with the a private key of size 1024. This should results into a 128 bytes binary digital signature, which is then converted to base 64 to result into a 172 bytes string. The resultant 172 byte string is attached to the message.
Also I will be storing the private key in the database for generating the signatures.
I have had a look at the help within progress and found the following functions which I think I may need:
SYMMETRIC-ENCRYPTION-ALGORITHM
(Supported Cryptographic algorithm names)
AES_CBC_128
AES_CFB_128
AES_ECB_128
AES_OFB_128
SHA1-DIGEST
BASE-64ENCODE
I believe I need to use SHA1-DIGEST but this returns a 20-byte binary message digest value as a RAW value. Also for the SYMMETRIC-ENCRYPTION-ALGORITHM I am unsure which to choose? Above have listed only the 128 sizes.
What should I be doing? any tips or helps will be helpful. If I cannot do this with stand progress syntax I guess I will have to use a 3[SUP]rd[/SUP] party DLL to do the encoding and decoding.
PROGRESS VERSION: 10.2A
OS: Windows
I am new to progress in and I am trying to work out how to do the following:
I need to create a payment message to be digitally signed (Hashed) using SHA1 and RSA signed with the a private key of size 1024. This should results into a 128 bytes binary digital signature, which is then converted to base 64 to result into a 172 bytes string. The resultant 172 byte string is attached to the message.
Also I will be storing the private key in the database for generating the signatures.
I have had a look at the help within progress and found the following functions which I think I may need:
SYMMETRIC-ENCRYPTION-ALGORITHM
(Supported Cryptographic algorithm names)
AES_CBC_128
AES_CFB_128
AES_ECB_128
AES_OFB_128
SHA1-DIGEST
BASE-64ENCODE
I believe I need to use SHA1-DIGEST but this returns a 20-byte binary message digest value as a RAW value. Also for the SYMMETRIC-ENCRYPTION-ALGORITHM I am unsure which to choose? Above have listed only the 128 sizes.
What should I be doing? any tips or helps will be helpful. If I cannot do this with stand progress syntax I guess I will have to use a 3[SUP]rd[/SUP] party DLL to do the encoding and decoding.