[GH-ISSUE #2909] [Feature Request] Does use_encryption rely on token? #2319

Closed
opened 2026-05-05 13:29:46 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @ThewBear on GitHub (Apr 23, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2909

Describe the feature request

I looked at the source code and found that use_encryption use token configuration as a pbkdf2 key.

So if I set use_encryption without specifying token, does it use empty string by default?

If it use empty string by default, I think we should state in the README that token must also be set.

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @ThewBear on GitHub (Apr 23, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2909 ### Describe the feature request I looked at the source code and found that `use_encryption` use `token` configuration as a pbkdf2 key. So if I set `use_encryption` without specifying `token`, does it use empty string by default? If it use empty string by default, I think we should state in the README that token must also be set. ### Describe alternatives you've considered _No response_ ### Affected area - [X] Docs - [ ] Installation - [ ] Performance and Scalability - [X] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Apr 23, 2022):

So if I set use_encryption without specifying token, does it use empty string by default

Yes.

However, tls_enable is preferred to encrypt all traffics between frpc and frps. use_encryption is reserved not to break compatibility.

<!-- gh-comment-id:1107524485 --> @fatedier commented on GitHub (Apr 23, 2022): > So if I set use_encryption without specifying token, does it use empty string by default Yes. However, `tls_enable` is preferred to encrypt all traffics between frpc and frps. `use_encryption` is reserved not to break compatibility.
Author
Owner

@ThewBear commented on GitHub (Apr 23, 2022):

So if I use tls_enable, can I omit use_encryption?

<!-- gh-comment-id:1107541740 --> @ThewBear commented on GitHub (Apr 23, 2022): So if I use `tls_enable`, can I omit `use_encryption`?
Author
Owner

@fatedier commented on GitHub (Apr 24, 2022):

Yes.

<!-- gh-comment-id:1107722458 --> @fatedier commented on GitHub (Apr 24, 2022): Yes.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2319
No description provided.