# Can the developer encrypt their source code?

**URL:** <https://discourse.julialang.org/t/can-the-developer-encrypt-their-source-code/116639>\
**Category:** General Usage\
**Tags:** question, encrypt\
**Created:** [July 5, 2024, 5:06am UTC](https://discourse.julialang.org/t/can-the-developer-encrypt-their-source-code/116639 "2024-07-05T05:06:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [July 5, 2024, 5:06am UTC](https://discourse.julialang.org/t/can-the-developer-encrypt-their-source-code/116639/1 "2024-07-05T05:06:33Z")

</div>

Is it possible in Julia for the developer to encrypt a package (registered or unregistered) in order that the source code is not open to the user but can be used by the user?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [July 5, 2024, 8:10am UTC](https://discourse.julialang.org/t/can-the-developer-encrypt-their-source-code/116639/2 "2024-07-05T08:10:20Z")

</div>

I do not think that this is possible. There was a commercial Julia compiler announced recently that can compile a subset of the Julia language. Perhaps this compiler could make this possible.

---

<div class="post-metadata">

**Author:** ![\_bernhard](https://avatars.discourse-cdn.com/v4/letter/_/bc79bd/32.png) [@\_bernhard](https://discourse.julialang.org/u/_bernhard)\
**Post date:** [July 5, 2024, 9:20am UTC](https://discourse.julialang.org/t/can-the-developer-encrypt-their-source-code/116639/3 "2024-07-05T09:20:11Z")

</div>

I think also compiling with `PackageCompiler` has the option to remove the source.
