Comments (6)
My current resolvent is decryption whole JWT.so i closet this issues
from jwt.
@orangeagain Can your share your solution?
Is it an issue with documentation?
from jwt.
@orangeagain Can your share your solution?
Is it an issue with documentation?
I Plan to encrypt whole token like this:
RAW:
{"alg": "HS256","typ": "JWT"}.{ "sub": "1234567890", "name": "John Doe", "iat": 1516239022}
after encrypt:
{"alg": "HS256","typ": "JWT"}.ENCRYPTPAYLOAD
final,after signature:
{"alg": "HS256","typ": "JWT"}.ENCRYPTPAYLOAD.SIGNATURE
I find different implement in your code.
but you didn't throw decryption payload,you just valid it.
can you throw payload json in decryption process?
JWT struct:
header.PAYLOAD.signature
from jwt.
Throw payload json because I need read custom jsonobj
custom json
don't need to deserlized,just throw string or byte[]. and we can deserlized it use other library like utf8json.
from jwt.
I found a way.thank you
https://github.com/ycrumeyrolle/Jwt/blob/master/samples/BinaryJwtCreationSample/Program.cs
https://github.com/ycrumeyrolle/Jwt/blob/master/samples/JweValidationSample/Program.cs
from jwt.
You are right. If you need to encrypt a JWS, this is basicaly a JWE.
from jwt.
Related Issues (20)
- Better support multiple issuers HOT 2
- Use an `IBufferWriter` when decompressing a JWT HOT 1
- Extract JWK logic into a separate assembly
- Extract cryptography logic into a separate assembly
- Signature validation fails when no signature algorithm is specified HOT 4
- Operation is not supported on this platform. HOT 8
- AES-GCM key wrapping is generating a nonce with low entropy
- Adds support for encrypted JWK
- Adds a CLI HOT 1
- MacOS build fail
- Adding already existing member to JsonObject creates a duplicate
- JwsDescriptor.Payload setter weird behavior. HOT 7
- Typo in the AlgorithmId.ES256X? HOT 4
- What is the meaning of 'defaultAlgorithm'? HOT 1
- JWKS ToString broken on 1.9.1 HOT 2
- Manual refresh for JwksHttpKeyProvider HOT 2
- Read SignatureAlgorithm from X509Certificate if available HOT 14
- https://jwt.io/#debugger-io?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.3ZlNebfhKEZ_HqKPIZFoI6Ro_YBlS7z2Oct4zfleOIk HOT 1
- Encrypted key present in ECDH-ES algorithm results in Invalid JWE HOT 9
- Hash-Algorithm for key derivation (ECDH-ES) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jwt.