transit-style | RETIRED : work towards transit style | Web Services library
kandi X-RAY | transit-style Summary
kandi X-RAY | transit-style Summary
RETIRED: work towards transit style
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of transit-style
transit-style Key Features
transit-style Examples and Code Snippets
Community Discussions
Trending Discussions on transit-style
QUESTION
I'm using MassTransit 3.4 and using the EncryptedSerializer. Messages are encrypted and decrypted correctly by my application, but now I'd like to be able to decode the base64-encoded messages that appear in the RabbitMQ "_error" queues. I'd like to write some program to allow users to discover the contents of the base64 encoded and encrypted messages and I'm struggling to get the messages decoded properly.
Here's what I've done so far. Copy/paste the "Payload" bits from the RabbitMQ management UI into my text editor and try to run code to Convert.FromBase64String(text), and then pass the byte array to a decryption function like the one found here. This ALMOST works - I see most of the characters of the Payload in plain text, but many characters are messed up. I can't share the entire message payload, but here is a screenshot from LinqPad showing some messed up characters (with red added by me for protection). See the black weird characters? And the leading "g"? What's the deal?
Here's a code snippet I'm using to get that decrypted text (I've also tried different encodings to no avail):
...ANSWER
Answered 2017-May-31 at 02:31The second approach is correct; you want to deserialize using BsonReader into a MassTransit MessageEnvelope instance. I was getting the "CryptographicException: Padding is invalid and cannot be removed" because I wasn't passing any DeserializerSettings... In the MassTransit source, they initialize the deserializer like the following:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install transit-style
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page