# Guides to using encrypted credentials?

**URL:** <https://discourse.julialang.org/t/guides-to-using-encrypted-credentials/32387>\
**Category:** Offtopic\
**Created:** [December 17, 2019, 3:11pm UTC](https://discourse.julialang.org/t/guides-to-using-encrypted-credentials/32387 "2019-12-17T15:11:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Post date:** [December 17, 2019, 3:11pm UTC](https://discourse.julialang.org/t/guides-to-using-encrypted-credentials/32387/1 "2019-12-17T15:11:05Z")

</div>

I recently started writing a Slack bot for work. There are a whole bunch of credentials for the Slack bot to use the Slack API. I’d like to store them in a TOML file, but I don’t know what’s the correct way to go about encrypting anything. (In particular, I don’t know where will be the right place to store whatever key would ultimately decrypt everything.)

Does anyone have any advice for storing credentials for a program to use? Specific advice for how to do this for Julia programs would also certainly be welcome.

---

<div class="post-metadata">

**Author:** ![jamaas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jamaas/32/30689_2.png) [@jamaas](https://discourse.julialang.org/u/jamaas)\
**Post date:** [February 6, 2022, 8:01am UTC](https://discourse.julialang.org/t/guides-to-using-encrypted-credentials/32387/2 "2022-02-06T08:01:06Z")

</div>

I know its been a while, did you ever find a solution to the problem? Thx. J.

---

<div class="post-metadata">

**Author:** ![GHTaarn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ghtaarn/32/216007_2.png) [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Post date:** [February 21, 2022, 7:07am UTC](https://discourse.julialang.org/t/guides-to-using-encrypted-credentials/32387/3 "2022-02-21T07:07:01Z")

</div>

I made some code to store encrypted credentials in a JSON file a few weeks ago, if you are interested then I could find it and send it to you. But I am not a security expert, so be critical of it if you do.

---

<div class="post-metadata">

**Author:** ![jamaas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jamaas/32/30689_2.png) [@jamaas](https://discourse.julialang.org/u/jamaas)\
**Post date:** [February 22, 2022, 7:30am UTC](https://discourse.julialang.org/t/guides-to-using-encrypted-credentials/32387/4 "2022-02-22T07:30:14Z")

</div>

Thanks for this, I did eventually get a solution with lots of help here and SO. [Hiding credentials](https://discourse.julialang.org/t/does-julia-have-an-invisible-function/76063/11)

---

<div class="post-metadata">

**Author:** ![jar1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jar1](https://discourse.julialang.org/u/jar1)\
**Post date:** [February 22, 2022, 8:34am UTC](https://discourse.julialang.org/t/guides-to-using-encrypted-credentials/32387/5 "2022-02-22T08:34:12Z")

</div>

[https://github.com/mozilla/sops#sops-secrets-operations](https://github.com/mozilla/sops#sops-secrets-operations)
