Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Encryption with private rsa key, encoding with base64

Forum

Search UsersRules
Encryption with private rsa key, encoding with base64
#1
Just came
Points:: 0
Joined:: Jul 8, 2015

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

Profile
#2
Interested
Points:: 0
Joined:: Dec 4, 2017

Dear Ged,

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

Best regards,
Vladimir Gurov

Profile
#3
Interested
Points:: 0
Joined:: Dec 4, 2017

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

Profile
#4
Just came
Points:: 0
Joined:: Jul 8, 2015

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.

Profile
#5
Just came
Points:: 0
Joined:: Jul 8, 2015

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

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.