Encryption with private rsa key, encoding with base64

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Jul 8, 2015
Company:

Hello,

there is a need to encrypt a specific value with private rsa key, and then encode it with base64, straight from 1C. Platform 8.3.5 1517. Operating system - Windows 10. Would be awesome if someone could share experience/methodical knowledge/code, for at least to have a solid point to start from.

Best Regards,
Ged

Edited: Ged Last - May 22, 2019 07:13 AM
 
#2
People who like this:0Yes/0No
Interested
Rating: 16
Joined: Dec 4, 2017
Company:

Dear Ged,

Please let us know the business case you would like to implement.

Best regards,
Vladimir Gurov

1C Company support team
 
#3
People who like this:0Yes/0No
Interested
Rating: 16
Joined: Dec 4, 2017
Company:

A sample code (in Russian) that uses RSA encryption is given here:

http://smbsec.ru/1cpredpriyatie/primer-assimetrichnogo-shifrovaniyarsa-1spredpriyatie-8.html

http://www.maintenance.kz/?q=node/9

Best regards,
Vladimir Gurov

1C Company support team
 
#4
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Jul 8, 2015
Company:

Thank you for the links, Vladimir. One of them I was not aware of. Solid information.

XML file has to be regularly-periodically sent over internet to a server. We are required to use REST technology. Method - POST. Basic Authentication, which is Username and Password. Each time password has to be encrypted with rsa key, which we have, and then encoded with base64.

Tried to use Ubuntu to do the encryption and encoding. With the right command its easy to do it via Terminal there. Succesfully used POSTMAN to send it using POST method. All these actions we want perform on a windows machine, straight from 1C.

 
#5
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Jul 8, 2015
Company:

little correction - password has to be signed with rsa key, not encrypted (incorrect choice of a word)

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.