You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix some errors in Readme.md and some performance optimization (#646)
I like this project very much, it's great, but there are some errors in readme.md
And the following about performance optimization
Optimize token generation with strings. Builder
Replace inefficient string concatenation with strings. Builder for token generation.
This improves performance by reducing memory allocations during string creation.
Using WriteByte also avoids unnecessary type conversions from character to string.
Co-authored-by: guocheng <[email protected]>
#### Beware, use this feature only on your self-hosted server: trusting a third-party service for server side encryption is at your own risk
58
58
```bash
59
-
$ curl --upload-file ./hello.txt https://your-transfersh-instance.tld/hello.txt -H "X-Encrypt-Password: test"# Encrypt the content sever side with AES265 using "test" as password
59
+
$ curl --upload-file ./hello.txt https://your-transfersh-instance.tld/hello.txt -H "X-Encrypt-Password: test"# Encrypt the content server side with AES256 using "test" as password
60
60
```
61
61
62
62
### X-Decrypt-Password
63
63
#### Beware, use this feature only on your self-hosted server: trusting a third-party service for server side encryption is at your own risk
64
64
```bash
65
-
$ curl https://your-transfersh-instance.tld/BAYh0/hello.txt -H "X-Decrypt-Password: test"# Decrypt the content sever side with AES265 using "test" as password
65
+
$ curl https://your-transfersh-instance.tld/BAYh0/hello.txt -H "X-Decrypt-Password: test"# Decrypt the content server side with AES256 using "test" as password
0 commit comments