# Use encryption in the PLC

**URL:** <https://community.br-automation.com/t/use-encryption-in-the-plc/3266>\
**Category:** Controls & Vision\
**Tags:** plc\
**Created:** [May 22, 2024, 6:52am UTC](https://community.br-automation.com/t/use-encryption-in-the-plc/3266 "2024-05-22T06:52:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philipp.Oberhuber](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/philipp.oberhuber/32/551_2.png) [@Philipp.Oberhuber](https://community.br-automation.com/u/Philipp.Oberhuber)\
**Post date:** [May 22, 2024, 6:52am UTC](https://community.br-automation.com/t/use-encryption-in-the-plc/3266/1 "2024-05-22T06:52:33Z")

</div>

Hello guys,

Does anyone know a way to encrypt strings within the PLC code? I wrote a method myself and it works fine, but for cybersecurity reasons I would like to use a tried and tested library. Does anyone know of a B&R library?

kind regards,  
Philipp

---

<div class="post-metadata">

**Author:** ![alexander.hefner](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/alexander.hefner/32/111_2.png) [@alexander.hefner](https://community.br-automation.com/u/alexander.hefner)\
**Post date:** [May 22, 2024, 10:35am UTC](https://community.br-automation.com/t/use-encryption-in-the-plc/3266/2 "2024-05-22T10:35:39Z")

</div>

Hi Philipp,

I don’t think that there’s a “official” library available.  
But you could check out this lib on github:

> **[BrSecurity](https://hilch.github.io/BrSecurity/)**
>
> Security Functions for B&R Automation Studio

Best regards!  
Alex

---

<div class="post-metadata">

**Author:** ![kovarj](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/kovarj/32/537_2.png) [@kovarj](https://community.br-automation.com/u/kovarj)\
**Post date:** [May 22, 2024, 11:26am UTC](https://community.br-automation.com/t/use-encryption-in-the-plc/3266/3 "2024-05-22T11:26:46Z")

</div>

I can confirm that there is not official B&R library for that.

---

<div class="post-metadata">

**Author:** ![Philipp.Oberhuber](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/philipp.oberhuber/32/551_2.png) [@Philipp.Oberhuber](https://community.br-automation.com/u/Philipp.Oberhuber)\
**Post date:** [May 23, 2024, 8:51am UTC](https://community.br-automation.com/t/use-encryption-in-the-plc/3266/4 "2024-05-23T08:51:31Z")

</div>

Ok thanks for the answer, I’ll take a look at it.

Best regards!  
Philipp
