天道酬勤,学无止境

apple-business-chat

解密 Apple Business Chat 身份验证令牌(Decrypt Apple Business Chat auth token)

问题 我正在查看此集成文档: https://register.apple.com/resources/business-chat/BC_Sending_an_Auth_Msg.pdf 请参阅“如何解密您的身份验证令牌”部分 我在 c# 中使用 Bouncy Castle v1.8.3 我有一个测试控制台应用程序: namespace AppleBusinessChat45 { class Program { static void Main(string[] args) { var publicKey = "BNY+I93aHVkXnNWKVLdrMJLXpQ1BsyHYoiv6UNi4rDUsRx3sNNhW8FNy9yUwxYprAwwfj1ZkoJ61Fs+SwjIbGPtXi52arvSbPglyBN4uAxtP3VP3LCP4JtSEjdgsgsretA=="; var privateKey = "pX/BvdXXUdpC79mW/jWi10Z6PJb5SBY2+aqkR/qYOjqgakKsqZFKnl0kz10Ve+BP"; var token = "BDiRKNnPiPUb5oala31nkmCaXMB0iyWy3Q93p6fN7vPxEQSUlFVsInkJzPBBqmW1FUIY1KBA3BQb3W3Qv4akZ8kblqbmvupE

2021-10-23 18:12:42    分类:技术分享    c#   bouncycastle   elliptic-curve   apple-business-chat

Decrypt Apple Business Chat auth token

I'm looking at this integration document: https://register.apple.com/resources/business-chat/BC_Sending_an_Auth_Msg.pdf See "How to Decrypt Your Auth Token" section I am using Bouncy Castle v1.8.3 for c# I have a test console app: namespace AppleBusinessChat45 { class Program { static void Main(string[] args) { var publicKey = "BNY+I93aHVkXnNWKVLdrMJLXpQ1BsyHYoiv6UNi4rDUsRx3sNNhW8FNy9yUwxYprAwwfj1ZkoJ61Fs+SwjIbGPtXi52arvSbPglyBN4uAxtP3VP3LCP4JtSEjdgsgsretA=="; var privateKey = "pX/BvdXXUdpC79mW/jWi10Z6PJb5SBY2+aqkR/qYOjqgakKsqZFKnl0kz10Ve+BP"; var token =

2021-08-30 17:52:49    分类:问答    c#   bouncycastle   elliptic-curve   apple-business-chat