├── .gitignore ├── LICENSE ├── README.md ├── did-security-csharp.sln └── did-security-csharp ├── PairwiseKey.cs ├── Tests └── did-security-csharp-tests │ ├── Pairwise.EC.json │ ├── Pairwise.RSA.json │ ├── PairwiseEC.cs │ ├── PairwiseRSA.cs │ ├── did-security-csharp-tests.csproj │ └── obj │ ├── Debug │ └── netcoreapp2.1 │ │ ├── did-security-csharp-tests.AssemblyInfo.cs │ │ ├── did-security-csharp-tests.AssemblyInfoInputs.cache │ │ ├── did-security-csharp-tests.Program.cs │ │ ├── did-security-csharp-tests.assets.cache │ │ └── did-security-csharp-tests.csprojAssemblyReference.cache │ ├── did-security-csharp-tests.csproj.nuget.g.props │ ├── did-security-csharp-tests.csproj.nuget.g.targets │ └── project.assets.json ├── did-security-csharp.csproj ├── did-security-csharp.csproj.user └── obj ├── Debug └── netstandard2.0 │ ├── did-security-csharp.AssemblyInfo.cs │ ├── did-security-csharp.AssemblyInfoInputs.cache │ ├── did-security-csharp.assets.cache │ └── did-security-csharp.csprojAssemblyReference.cache ├── did-security-csharp.csproj.nuget.g.props ├── did-security-csharp.csproj.nuget.g.targets └── project.assets.json /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Build results 17 | [Dd]ebug/ 18 | [Dd]ebugPublic/ 19 | [Rr]elease/ 20 | [Rr]eleases/ 21 | x64/ 22 | x86/ 23 | [Aa][Rr][Mm]/ 24 | [Aa][Rr][Mm]64/ 25 | bld/ 26 | [Bb]in/ 27 | [Oo]bj/ 28 | [Ll]og/ 29 | 30 | # Visual Studio 2015/2017 cache/options directory 31 | .vs/ 32 | # Uncomment if you have tasks that create the project's static files in wwwroot 33 | #wwwroot/ 34 | 35 | # Visual Studio 2017 auto generated files 36 | Generated\ Files/ 37 | 38 | # MSTest test Results 39 | [Tt]est[Rr]esult*/ 40 | [Bb]uild[Ll]og.* 41 | 42 | # NUNIT 43 | *.VisualState.xml 44 | TestResult.xml 45 | 46 | # Build Results of an ATL Project 47 | [Dd]ebugPS/ 48 | [Rr]eleasePS/ 49 | dlldata.c 50 | 51 | # Benchmark Results 52 | BenchmarkDotNet.Artifacts/ 53 | 54 | # .NET Core 55 | project.lock.json 56 | project.fragment.lock.json 57 | artifacts/ 58 | 59 | # StyleCop 60 | StyleCopReport.xml 61 | 62 | # Files built by Visual Studio 63 | *_i.c 64 | *_p.c 65 | *_h.h 66 | *.ilk 67 | *.meta 68 | *.obj 69 | *.iobj 70 | *.pch 71 | *.pdb 72 | *.ipdb 73 | *.pgc 74 | *.pgd 75 | *.rsp 76 | *.sbr 77 | *.tlb 78 | *.tli 79 | *.tlh 80 | *.tmp 81 | *.tmp_proj 82 | *_wpftmp.csproj 83 | *.log 84 | *.vspscc 85 | *.vssscc 86 | .builds 87 | *.pidb 88 | *.svclog 89 | *.scc 90 | 91 | # Chutzpah Test files 92 | _Chutzpah* 93 | 94 | # Visual C++ cache files 95 | ipch/ 96 | *.aps 97 | *.ncb 98 | *.opendb 99 | *.opensdf 100 | *.sdf 101 | *.cachefile 102 | *.VC.db 103 | *.VC.VC.opendb 104 | 105 | # Visual Studio profiler 106 | *.psess 107 | *.vsp 108 | *.vspx 109 | *.sap 110 | 111 | # Visual Studio Trace Files 112 | *.e2e 113 | 114 | # TFS 2012 Local Workspace 115 | $tf/ 116 | 117 | # Guidance Automation Toolkit 118 | *.gpState 119 | 120 | # ReSharper is a .NET coding add-in 121 | _ReSharper*/ 122 | *.[Rr]e[Ss]harper 123 | *.DotSettings.user 124 | 125 | # JustCode is a .NET coding add-in 126 | .JustCode 127 | 128 | # TeamCity is a build add-in 129 | _TeamCity* 130 | 131 | # DotCover is a Code Coverage Tool 132 | *.dotCover 133 | 134 | # AxoCover is a Code Coverage Tool 135 | .axoCover/* 136 | !.axoCover/settings.json 137 | 138 | # Visual Studio code coverage results 139 | *.coverage 140 | *.coveragexml 141 | 142 | # NCrunch 143 | _NCrunch_* 144 | .*crunch*.local.xml 145 | nCrunchTemp_* 146 | 147 | # MightyMoose 148 | *.mm.* 149 | AutoTest.Net/ 150 | 151 | # Web workbench (sass) 152 | .sass-cache/ 153 | 154 | # Installshield output folder 155 | [Ee]xpress/ 156 | 157 | # DocProject is a documentation generator add-in 158 | DocProject/buildhelp/ 159 | DocProject/Help/*.HxT 160 | DocProject/Help/*.HxC 161 | DocProject/Help/*.hhc 162 | DocProject/Help/*.hhk 163 | DocProject/Help/*.hhp 164 | DocProject/Help/Html2 165 | DocProject/Help/html 166 | 167 | # Click-Once directory 168 | publish/ 169 | 170 | # Publish Web Output 171 | *.[Pp]ublish.xml 172 | *.azurePubxml 173 | # Note: Comment the next line if you want to checkin your web deploy settings, 174 | # but database connection strings (with potential passwords) will be unencrypted 175 | *.pubxml 176 | *.publishproj 177 | 178 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 179 | # checkin your Azure Web App publish settings, but sensitive information contained 180 | # in these scripts will be unencrypted 181 | PublishScripts/ 182 | 183 | # NuGet Packages 184 | *.nupkg 185 | # The packages folder can be ignored because of Package Restore 186 | **/[Pp]ackages/* 187 | # except build/, which is used as an MSBuild target. 188 | !**/[Pp]ackages/build/ 189 | # Uncomment if necessary however generally it will be regenerated when needed 190 | #!**/[Pp]ackages/repositories.config 191 | # NuGet v3's project.json files produces more ignorable files 192 | *.nuget.props 193 | *.nuget.targets 194 | 195 | # Microsoft Azure Build Output 196 | csx/ 197 | *.build.csdef 198 | 199 | # Microsoft Azure Emulator 200 | ecf/ 201 | rcf/ 202 | 203 | # Windows Store app package directories and files 204 | AppPackages/ 205 | BundleArtifacts/ 206 | Package.StoreAssociation.xml 207 | _pkginfo.txt 208 | *.appx 209 | 210 | # Visual Studio cache files 211 | # files ending in .cache can be ignored 212 | *.[Cc]ache 213 | # but keep track of directories ending in .cache 214 | !?*.[Cc]ache/ 215 | 216 | # Others 217 | ClientBin/ 218 | ~$* 219 | *~ 220 | *.dbmdl 221 | *.dbproj.schemaview 222 | *.jfm 223 | *.pfx 224 | *.publishsettings 225 | orleans.codegen.cs 226 | 227 | # Including strong name files can present a security risk 228 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 229 | #*.snk 230 | 231 | # Since there are multiple workflows, uncomment next line to ignore bower_components 232 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 233 | #bower_components/ 234 | # ASP.NET Core default setup: bower directory is configured as wwwroot/lib/ and bower restore is true 235 | **/wwwroot/lib/ 236 | 237 | # RIA/Silverlight projects 238 | Generated_Code/ 239 | 240 | # Backup & report files from converting an old project file 241 | # to a newer Visual Studio version. Backup files are not needed, 242 | # because we have git ;-) 243 | _UpgradeReport_Files/ 244 | Backup*/ 245 | UpgradeLog*.XML 246 | UpgradeLog*.htm 247 | ServiceFabricBackup/ 248 | *.rptproj.bak 249 | 250 | # SQL Server files 251 | *.mdf 252 | *.ldf 253 | *.ndf 254 | 255 | # Business Intelligence projects 256 | *.rdl.data 257 | *.bim.layout 258 | *.bim_*.settings 259 | *.rptproj.rsuser 260 | *- Backup*.rdl 261 | 262 | # Microsoft Fakes 263 | FakesAssemblies/ 264 | 265 | # GhostDoc plugin setting file 266 | *.GhostDoc.xml 267 | 268 | # Node.js Tools for Visual Studio 269 | .ntvs_analysis.dat 270 | node_modules/ 271 | 272 | # Visual Studio 6 build log 273 | *.plg 274 | 275 | # Visual Studio 6 workspace options file 276 | *.opt 277 | 278 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 279 | *.vbw 280 | 281 | # Visual Studio LightSwitch build output 282 | **/*.HTMLClient/GeneratedArtifacts 283 | **/*.DesktopClient/GeneratedArtifacts 284 | **/*.DesktopClient/ModelManifest.xml 285 | **/*.Server/GeneratedArtifacts 286 | **/*.Server/ModelManifest.xml 287 | _Pvt_Extensions 288 | 289 | # Paket dependency manager 290 | .paket/paket.exe 291 | paket-files/ 292 | 293 | # FAKE - F# Make 294 | .fake/ 295 | 296 | # JetBrains Rider 297 | .idea/ 298 | *.sln.iml 299 | 300 | # CodeRush personal settings 301 | .cr/personal 302 | 303 | # Python Tools for Visual Studio (PTVS) 304 | __pycache__/ 305 | *.pyc 306 | 307 | # Cake - Uncomment if you are using it 308 | # tools/** 309 | # !tools/packages.config 310 | 311 | # Tabs Studio 312 | *.tss 313 | 314 | # Telerik's JustMock configuration file 315 | *.jmconfig 316 | 317 | # BizTalk build output 318 | *.btp.cs 319 | *.btm.cs 320 | *.odx.cs 321 | *.xsd.cs 322 | 323 | # OpenCover UI analysis results 324 | OpenCover/ 325 | 326 | # Azure Stream Analytics local run output 327 | ASALocalRun/ 328 | 329 | # MSBuild Binary and Structured Log 330 | *.binlog 331 | 332 | # NVidia Nsight GPU debugger configuration file 333 | *.nvuser 334 | 335 | # MFractors (Xamarin productivity tool) working folder 336 | .mfractor/ 337 | 338 | # Local History for Visual Studio 339 | .localhistory/ 340 | 341 | # BeatPulse healthcheck temp database 342 | healthchecksdb 343 | 344 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 345 | MigrationBackup/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # did-security-c# 2 | C# implementation of DID security and privacy controls 3 | 4 | The current focus is on pairwise key generation with the following algorithms. 5 | 6 | # Pairwise ID generation scheme based on Elliptic Curves 7 | The first use of pairwise IDs is to generate a pairwise ID whenever a user interacts with a new relying party. 8 | Since we don�t know all relying parties ahead of time, we must be able to generate a new pairwise DID just in time. 9 | This scheme is designed to create a unique elliptic curve key pair for each combination of a peer identifier and the DID of the user. 10 | The scheme allows us to recreate all parameters needed for persisting the pairwise id�s cross different user agents or recover in case a user agent got lost. 11 | 12 | 13 | ## Important parameters 14 | **Seed** 256 bit value that the user needs to reproduce on each user agent. 15 | 16 | **usage** String value representing the usage of the generated key 17 | 18 | **Did** A decentralized identifier registered by the user 19 | 20 | **didMasterKey** Derived master key for each DID used in the user agent 21 | 22 | **peerId** Identifier representing the relying party or peer 23 | 24 | **privKey(didMasterKey, peerId)** Private key to be used for the DID and the peer 25 | 26 | **pubKey(didMasterKey, peerId)** Public key to be used for the DID and the peer 27 | 28 | 29 | ## Deterministic EC key generation protocol for pairwise Id's 30 | The following provides us with a unique master key per operation for the DID on the user agent: 31 | Let didMasterKey = HMAC-SHA512(Key = seed, data = usage || did). 32 | 33 | 34 | Let usage be 'signature' for a signature key, 'encryption' for an encryption key. 'none' can be used if the same key is used for both operations. 35 | 36 | 37 | Let peerId be a representation string of the peer or relying party. The peerId could be any string but needs to be clearly discoverable in any transactions. 38 | 39 | To generate the same pairwise id, the peerId must always be deterministic for each peer or relying party. 40 | 41 | We need to make sure the peerid has defined canonicalization and localization transformations so each user agent will come to the same binary representation of the peerId. 42 | 43 | Examples of peerId's are the DID of the peer in the transactions, domain name of a relying party. 44 | 45 | 46 | To calculate the pairwise key pair for each peer, perform the following: 47 | Let peerKey(didMasterKey, peerId) = HMAC-SHA512(Key = didMasterKey, Data = peerId). 48 | 49 | 50 | Now we need to normalize the peerKey to make it a valid EC private key: 51 | privKey(didMasterKey, peerId) = peerKey(didMasterKey, peerId) mod n 52 | 53 | n is the modulus which is a parameter of the curve. 54 | 55 | 56 | # Pairwise ID generation scheme based on RSA 57 | 58 | This section defines a scheme how to generate a new pairwise key just in time for RSA. 59 | 60 | This scheme is designed to create a unique RSA key pair for each combination of a peer identifier and the DID of the user. 61 | 62 | The scheme allows us to recreate all parameters needed for persisting the pairwise id’s cross different user agents or recover in case a user agent got lost. 63 | 64 | ## Important parameters 65 | **Seed** 256 bit value that the user needs to reproduce on each user agent. 66 | **Usage** String value representing the usage of the generated key 67 | **Did** A decentralized identifier registered by the user 68 | **didMasterKey** Derived master key for each DID used in the user agent 69 | **peerId** Identifier representing the relying party or peer 70 | **privKey(didMasterKey, peerId)** Private key to be used for the DID and the peer 71 | **pubKey(didMasterKey, peerId)** Public key to be used for the DID and the peer 72 | 73 | ## Deterministic key protocol for pairwise Id's 74 | The following provides us with a unique master key for the DID on the user agent: 75 | 76 | Let didMasterKey = HMAC-SHA512(Key = seed, data = usage || did). 77 | 78 | Let usage be “signature” for a signature key, “encryption” for an encryption key. “none” can be used if the same key is used for both operations. 79 | 80 | Let peerId be a representation string of the peer or relying party. The peerId could be any string but needs to be clearly discoverable in any transactions. To generate the same pairwise id, the peerId must always be deterministic for each peer or relying party. We need to make sure the peerid has defined canonicalization and localization transformations so each user agent will come to the same binary representation of the peerId. Examples of peerId’s are the DID of the peer in the transactions, domain name of a relying party. 81 | 82 | We will need two prime numbers p and q needed for the RSA key pair generation. The size of p and q is equal to the RSA key length / 2. So, a 2048 bits RSA key pair will need two deterministic values pbase, qbase of 1024 bits. We will need two SHA512 operations to get a 1024 bits value. 83 | 84 | Let pbase = (x = HMAC-SHA512(Key = didMasterKey, data = peerId)) || HMAC-SHA512(Key = didMasterKey, data = x) 85 | 86 | Let qbase = (x = HMAC-SHA512(Key = pbase, data = peerId)) || HMAC-SHA512(Key = pbase, data = x) 87 | pbase and qbase will be converted into positive big integers and are considered to be in the big endian format. The most and least significant bits are set to 1 to guarantee an odd and large number. 88 | Next, we need a deterministic prime generator. The algorithm will be identical for generating p and q. 89 | 90 | 91 | We use the Miller-Rabin primality test (isPrime) with 64 iterations. 64 iterations will guarantee 128 bits security. 92 | 93 | ### Pseudo code for calculating p: 94 | Let primeToTest = pbase; 95 | While (true) 96 | { 97 | If (isPrime(primeToTest, 64)) 98 | return primeToTest; 99 | primeToTest += 2; 100 | } 101 | 102 | Now that we have p and q we can calculate the full RSA key as follows: 103 | 104 | n = pq 105 | e = 65537 106 | d = e-1 mod ((p - 1)(q - 1)) 107 | Let privKey(didMasterKey, peerId) = d,n 108 | Let pubKey(didMasterKey, peerId) = e,n 109 | 110 | -------------------------------------------------------------------------------- /did-security-csharp.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28010.2016 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "did-security-csharp", "did-security-csharp\did-security-csharp.csproj", "{B4CE8ED5-64A6-4B9C-B201-233FDAAD54E4}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "did-security-csharp-tests", "did-security-csharp\Tests\did-security-csharp-tests\did-security-csharp-tests.csproj", "{47C531C5-AC43-4BCB-AD72-4994422232C3}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | Release|Any CPU = Release|Any CPU 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {B4CE8ED5-64A6-4B9C-B201-233FDAAD54E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {B4CE8ED5-64A6-4B9C-B201-233FDAAD54E4}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {B4CE8ED5-64A6-4B9C-B201-233FDAAD54E4}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {B4CE8ED5-64A6-4B9C-B201-233FDAAD54E4}.Release|Any CPU.Build.0 = Release|Any CPU 20 | {47C531C5-AC43-4BCB-AD72-4994422232C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 21 | {47C531C5-AC43-4BCB-AD72-4994422232C3}.Debug|Any CPU.Build.0 = Debug|Any CPU 22 | {47C531C5-AC43-4BCB-AD72-4994422232C3}.Release|Any CPU.ActiveCfg = Release|Any CPU 23 | {47C531C5-AC43-4BCB-AD72-4994422232C3}.Release|Any CPU.Build.0 = Release|Any CPU 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {7F6CB4BB-3DDE-4611-8428-9D9E88F2D22D} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /did-security-csharp/PairwiseKey.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Dynamic; 3 | using System.Numerics; 4 | using System.Security.Cryptography; 5 | using System.Text; 6 | using net.vieapps.Components.Utility; 7 | using Open.Numeric.Primes; 8 | 9 | namespace did_security_csharp 10 | { 11 | /** 12 | * Class to model a pairwise key 13 | * Reference implementation for EC pairwise keys and RSA pairwise keys 14 | */ 15 | public class PairwiseKey 16 | { 17 | /// 18 | /// Gets or sets the did 19 | /// 20 | public string Did { get; set; } 21 | 22 | /// 23 | /// Gets or sets the peer id 24 | /// 25 | public string PeerId { get; set; } 26 | 27 | /// 28 | /// Create an instance of PairwiseKey. 29 | /// 30 | /// The DID 31 | /// The peer id 32 | public PairwiseKey(string did, string peerId) 33 | { 34 | this.Did = did; 35 | this.PeerId = peerId; 36 | } 37 | 38 | /// 39 | /// Generate the pairwise Key. 40 | /// 41 | /// Seed for the generating DID master keys. 42 | /// Key size. Only applicable for RSA 43 | /// Key type. 44 | /// The pairwise key 45 | public object generate(byte[] seed, int keySize, string keyType) 46 | { 47 | switch (keyType.ToUpper()) 48 | { 49 | case "EC": 50 | return this.generateEcPairwiseKey(seed); 51 | case "RSA": 52 | return this.generateRsaPairwiseKey(seed, keySize); 53 | } 54 | 55 | throw new NotImplementedException($"Pairwise key for key type ${keyType} is not supported"); 56 | } 57 | 58 | /// 59 | /// Generate the master Key. 60 | /// 61 | /// Seed for the generating DID master keys. 62 | /// The DID 63 | /// The peer id 64 | /// DID master key 65 | private byte[] generateDidMasterKey(byte[] seed, string did, string peerId) 66 | { 67 | byte[] didBytes = Encoding.UTF8.GetBytes(did + "signature"); 68 | 69 | // Initialize the keyed hash object. 70 | byte[] hashValue = null; 71 | using (HMACSHA512 hmac = new HMACSHA512(seed)) 72 | { 73 | hashValue = hmac.ComputeHash(didBytes); 74 | } 75 | 76 | return hashValue; 77 | } 78 | 79 | /// 80 | /// Convert big endian array to little endian 81 | /// 82 | /// 83 | /// Converted array 84 | private byte[] ConvertToLittleEndian(byte[] toConvert) 85 | { 86 | byte[] littleEndian = new byte[toConvert.Length + 1]; 87 | for (int convertedInx = 0, toConvertInx = toConvert.Length - 1; convertedInx < toConvert.Length; convertedInx++, toConvertInx--) 88 | { 89 | littleEndian[convertedInx] = toConvert[toConvertInx]; 90 | } 91 | 92 | // make sure to return a positive number 93 | littleEndian[toConvert.Length] = 0; 94 | 95 | return littleEndian; 96 | } 97 | 98 | /// 99 | /// Convert little endian to big endian 100 | /// 101 | /// 102 | /// Converted array 103 | private byte[] ConvertToBigEndian(byte[] toConvert, int wantedSize) 104 | { 105 | try 106 | { 107 | byte[] bigEndian = new byte[wantedSize]; 108 | 109 | int toConvertInx = toConvert.Length - 1; 110 | if (toConvert.Length > wantedSize) 111 | { 112 | toConvertInx = toConvert.Length - (toConvert.Length - wantedSize) - 1; 113 | } 114 | else if (toConvert.Length < wantedSize) 115 | { 116 | bigEndian = new byte[toConvert.Length]; 117 | wantedSize = toConvert.Length; 118 | } 119 | 120 | 121 | for (int convertedInx = 0; convertedInx < wantedSize; convertedInx++, toConvertInx--) 122 | { 123 | if (convertedInx >= toConvert.Length) 124 | { 125 | bigEndian[convertedInx] = 0; 126 | } 127 | else 128 | { 129 | bigEndian[convertedInx] = toConvert[toConvertInx]; 130 | } 131 | } 132 | 133 | return bigEndian; 134 | } 135 | catch (Exception e) 136 | { 137 | Console.WriteLine(e); 138 | throw; 139 | } 140 | } 141 | 142 | private string ToBase64Url(byte[] toConvert) 143 | { 144 | string b64 = Convert.ToBase64String(toConvert); 145 | return b64.Split('=')[0].Replace('+', '-').Replace('/', '_'); 146 | } 147 | 148 | /// 149 | /// Loop until a probable prime is found. 150 | /// Based on the Miller Rabin primility test with 64 loops to be deterministic 151 | /// 152 | /// 153 | /// Prime number 154 | private BigInteger GetPrime(BigInteger prime) 155 | { 156 | int count = 1; 157 | BigInteger two = new BigInteger(2); 158 | while (true) 159 | { 160 | if (MillerRabin.IsProbablePrime(prime, 64)) 161 | { 162 | Console.WriteLine("Number of rounds: {0}", count); 163 | return prime; 164 | } 165 | 166 | prime += two; 167 | count++; 168 | } 169 | } 170 | 171 | /// 172 | /// Generate a starting number for prime testing based on signatures 173 | /// The number is deterministic. 174 | /// 175 | /// Seed 176 | /// Number of bits 177 | /// Data to sign 178 | /// 179 | private byte[] generateDeterministicNumberForPrime(byte[] key, int primeSize, byte[] data) 180 | { 181 | int nrRounds = primeSize / 512; 182 | byte[] result = new byte[primeSize / 8]; 183 | int destInx = 0; 184 | while (nrRounds-- > 0) 185 | { 186 | using (HMACSHA512 hmac = new HMACSHA512(key)) 187 | { 188 | byte[] number = hmac.ComputeHash(data); 189 | Buffer.BlockCopy(number, 0, result, destInx, number.Length); 190 | data = number; 191 | destInx += number.Length; 192 | } 193 | } 194 | 195 | return result; 196 | } 197 | 198 | /// 199 | /// Generate the RSA pairwise Key. 200 | /// 201 | /// Seed for the generating DID master keys. 202 | /// Key size 203 | /// Json Web Key 204 | private object generateRsaPairwiseKey(byte[] seed, int keySize) 205 | { 206 | // Generate DID master key 207 | byte[] didMasterKey = this.generateDidMasterKey(seed, this.Did, this.PeerId); 208 | 209 | // Generate peer key 210 | byte[] peerId = Encoding.UTF8.GetBytes(this.PeerId); 211 | 212 | // Get pbase 213 | byte[] pbase = this.generateDeterministicNumberForPrime(didMasterKey, keySize / 2, peerId); 214 | 215 | // Get qbase 216 | byte[] qbase = this.generateDeterministicNumberForPrime(pbase, keySize / 2, peerId); 217 | 218 | // Set most and least significant bit 219 | pbase[0] |= 0x80; 220 | pbase[pbase.Length - 1] |= 0x1; 221 | qbase[0] |= 0x80; 222 | qbase[qbase.Length - 1] |= 0x1; 223 | 224 | // base components for key generation 225 | pbase = this.ConvertToLittleEndian(pbase); 226 | qbase = this.ConvertToLittleEndian(qbase); 227 | 228 | // Generate key pair 229 | BigInteger p = new BigInteger(pbase); 230 | p = this.GetPrime(p); 231 | BigInteger q = new BigInteger(qbase); 232 | q = this.GetPrime(q); 233 | BigInteger n = BigInteger.Multiply(p, q); 234 | BigInteger e = new BigInteger(65537); 235 | var pMinus = BigInteger.Subtract(p, BigInteger.One); 236 | var qMinus = BigInteger.Subtract(q, BigInteger.One); 237 | var phi = BigInteger.Multiply(pMinus, qMinus); 238 | var d = e.ModInverse(phi); 239 | var dp = BigInteger.ModPow(d, 1, pMinus); 240 | var dq = BigInteger.ModPow(d, 1, qMinus); 241 | var qi = q.ModInverse(p); 242 | 243 | // Convert to big endian 244 | var jwke = this.ConvertToBigEndian(e.ToByteArray(), 3); 245 | var jwkn = this.ConvertToBigEndian(n.ToByteArray(), 128); 246 | var jwkd = this.ConvertToBigEndian(d.ToByteArray(), 128); 247 | var jwkp = this.ConvertToBigEndian(p.ToByteArray(), 64); 248 | var jwkq = this.ConvertToBigEndian(q.ToByteArray(), 64); 249 | var jwkdp = this.ConvertToBigEndian(dp.ToByteArray(), 64); 250 | var jwkdq = this.ConvertToBigEndian(dq.ToByteArray(), 64); 251 | var jwkqi = this.ConvertToBigEndian(qi.ToByteArray(), 64); 252 | 253 | // Set json web key 254 | dynamic jwk = new ExpandoObject(); 255 | jwk.kty = "RSA"; 256 | jwk.e = this.ToBase64Url(jwke); 257 | jwk.n = this.ToBase64Url(jwkn); 258 | jwk.d = this.ToBase64Url(jwkd); 259 | jwk.p = this.ToBase64Url(jwkp); 260 | jwk.q = this.ToBase64Url(jwkq); 261 | jwk.dp = this.ToBase64Url(jwkdp); 262 | jwk.dq = this.ToBase64Url(jwkdq); 263 | jwk.qi = this.ToBase64Url(jwkqi); 264 | return jwk; 265 | } 266 | 267 | /// 268 | /// Generate the EC pairwise Key. 269 | /// 270 | /// Seed for the generating DID master keys. 271 | /// Json Web Key 272 | private object generateEcPairwiseKey(byte[] seed) 273 | { 274 | // Generate DID master key 275 | byte[] didMasterKey = this.generateDidMasterKey(seed, this.Did, this.PeerId); 276 | 277 | // Generate peer key 278 | byte[] peerId = Encoding.UTF8.GetBytes(this.PeerId); 279 | 280 | // Initialize the keyed hash object. 281 | byte[] hashValue = null; 282 | using (HMACSHA512 hmac = new HMACSHA512(didMasterKey)) 283 | { 284 | hashValue = hmac.ComputeHash(peerId); 285 | } 286 | byte[] littleEndian = this.ConvertToLittleEndian(hashValue); 287 | BigInteger privKey = new BigInteger(littleEndian); 288 | privKey %= ECCsecp256k1.N; 289 | 290 | var pubKey = ECCsecp256k1.G.Multiply(privKey); 291 | var d = this.ConvertToBigEndian(privKey.ToByteArray(), 32); 292 | var x = this.ConvertToBigEndian(pubKey.X.ToByteArray(), 32); 293 | var y = this.ConvertToBigEndian(pubKey.Y.ToByteArray(), 32); 294 | dynamic jwk = new ExpandoObject(); 295 | jwk.crv = "secp256k1"; 296 | jwk.d = this.ToBase64Url(d); 297 | jwk.x = this.ToBase64Url(x); 298 | jwk.y = this.ToBase64Url(y); 299 | return jwk; 300 | } 301 | } 302 | } 303 | -------------------------------------------------------------------------------- /did-security-csharp/Tests/did-security-csharp-tests/Pairwise.EC.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "pwid": "0", 4 | "key": "SNbQt3stWLGIcA8C_i3FqZPvfYep-fV66GhsmMGM59Q" 5 | }, 6 | { 7 | "pwid": "1", 8 | "key": "wRXjzzM8FJpCNscvEYBU_KRmufrA8d5nSOsYrTFkHwU" 9 | }, 10 | { 11 | "pwid": "2", 12 | "key": "ULirGxEtdYEhKu_RuJbNlV3UBndtKx6QNqowyxtA6T4" 13 | }, 14 | { 15 | "pwid": "3", 16 | "key": "G1-xtR7q3EZaHl00nWfkNlpvjRq6vRa3PmVMFpNNKcE" 17 | }, 18 | { 19 | "pwid": "4", 20 | "key": "KYbj6r_OVD_sQivq_03pCe-17iMTl5OeSbxs1qilpME" 21 | }, 22 | { 23 | "pwid": "5", 24 | "key": "_zqZnLv6a-jorfQ1n7XmC4J1jmius_Lawb1CGb2gIQc" 25 | }, 26 | { 27 | "pwid": "6", 28 | "key": "Y1Rb1jKHeIrBGeLaZn_NISKvEKtPoX3-TxsNKKk-x9g" 29 | }, 30 | { 31 | "pwid": "7", 32 | "key": "J26gf-1TRj78VoB3xrJRnvhI1oQj8hsBoRowNSBkObs" 33 | }, 34 | { 35 | "pwid": "8", 36 | "key": "bO_8_TVx5DGiXj3n4Ems4gXs-axeorr7Z6-vWN76XMM" 37 | }, 38 | { 39 | "pwid": "9", 40 | "key": "rCzAX_8rhG8QAx2g1d1RevH2htO6pooC3A02ISoY-hc" 41 | }, 42 | { 43 | "pwid": "10", 44 | "key": "-4-dH0n0ltpmA_pIkyrTuNIzZbZS7xK1afbSD20RC5I" 45 | }, 46 | { 47 | "pwid": "11", 48 | "key": "o6PD4N-WnHRXpgjvVQxRbieB-_Fu28V9Y7ZMCCf5og4" 49 | }, 50 | { 51 | "pwid": "12", 52 | "key": "WnT9exPoRjwxVWQE3G9QvCqMQxea3SzqjnB9K4edaYI" 53 | }, 54 | { 55 | "pwid": "13", 56 | "key": "t0IIw4IrMhYIoQoR_ceUXGdXEfYrJUlxbAFZ0HKpot4" 57 | }, 58 | { 59 | "pwid": "14", 60 | "key": "vVfOftTBcQwbQNtcPuTqhA6DIwS6j4-b-j3t17Hksew" 61 | }, 62 | { 63 | "pwid": "15", 64 | "key": "LHwuNWT0igDlz7Wxm9R3pfLji3zpTGoKU_RIgTz1ZWk" 65 | }, 66 | { 67 | "pwid": "16", 68 | "key": "9ZUjvUyITEMoMM8zQBV9Nhi_WjifHiPa60r47gjaTWc" 69 | }, 70 | { 71 | "pwid": "17", 72 | "key": "SUgV0xUsWdceqBw-2KeI4t2i_cXfWZKp7u46p7bjdWo" 73 | }, 74 | { 75 | "pwid": "18", 76 | "key": "SseccyiY4V1p2mjqxvygETVdWA96msbAZiHkvXoYRNw" 77 | }, 78 | { 79 | "pwid": "19", 80 | "key": "zS1hBVBA7tpuAl6RakrhprsvCJgCd-0_fAm4vnVNf44" 81 | }, 82 | { 83 | "pwid": "20", 84 | "key": "UnrR25CEzbpmd4KtENROeCFRt7NWYXg7RjR9ko8Ism4" 85 | }, 86 | { 87 | "pwid": "21", 88 | "key": "P7ljxh7CB0kGS81y2vsK2ctWMEJxChNZEvj4_JdcEMI" 89 | }, 90 | { 91 | "pwid": "22", 92 | "key": "NajH4M-h4wRCf38ZJp58Bo5TijSa6NGqo2qbczLDHyU" 93 | }, 94 | { 95 | "pwid": "23", 96 | "key": "AZKnoFlbLZbmERxrtPrrjCfcmnUXzkUNkqsDThAosWU" 97 | }, 98 | { 99 | "pwid": "24", 100 | "key": "ufzxvzvTYTGjlF3ETXCntwpWZRfQm-GoJ4JgSEnh0gA" 101 | }, 102 | { 103 | "pwid": "25", 104 | "key": "akv15BYAurP5E6FE0A2g33XCO2l9_EtciJnNathC1UY" 105 | }, 106 | { 107 | "pwid": "26", 108 | "key": "n2apYpRCHAfalwt0QOlbpGfH6-FrThmdF0NmqnX8rLY" 109 | }, 110 | { 111 | "pwid": "27", 112 | "key": "X_Ri2vtmcV3AiLQ6aDJ9YGI3q7m_TdpO-C2pLUYcJRs" 113 | }, 114 | { 115 | "pwid": "28", 116 | "key": "pTX2BflrVr0CUw-KqobMBNVZ4rKPqPkDK1wrhsp_Z6A" 117 | }, 118 | { 119 | "pwid": "29", 120 | "key": "VPr_6sPE-iMAEeJcG78kTXEzBide6gzKyVqc73V_C8Q" 121 | }, 122 | { 123 | "pwid": "30", 124 | "key": "Qdme5VVzGxXPZvMKNHRHE0qD7fUCSzXwrgkOlKOZxug" 125 | }, 126 | { 127 | "pwid": "31", 128 | "key": "VztRGnPOuW0D3ir-hdHfFy83Fab6BFmWGCy8oadAe2g" 129 | }, 130 | { 131 | "pwid": "32", 132 | "key": "EBrQklM_AWyydXz_NPYrO40ekr25IqT78oQjDWnse_E" 133 | }, 134 | { 135 | "pwid": "33", 136 | "key": "yP6JnuK2D8nt2T8DSt1wXvwMKTFWNMJiFh82ZkhllB0" 137 | }, 138 | { 139 | "pwid": "34", 140 | "key": "Ltaevr2ADWTl6dAgNdCM5kmxVPXc-Du7Q7OiSBfVxRQ" 141 | }, 142 | { 143 | "pwid": "35", 144 | "key": "DPQk5SILjPR8rzRJyxCgu9vBgnw3ZshsBPznvVbpDjA" 145 | }, 146 | { 147 | "pwid": "36", 148 | "key": "6abJURI7E9_SPFhbV3xNtLydwzxxB-vhN_sNMzVVBiA" 149 | }, 150 | { 151 | "pwid": "37", 152 | "key": "8whxZApzWAuhDm67baEqcUId8XIYjLAt6VBOFIP8MFg" 153 | }, 154 | { 155 | "pwid": "38", 156 | "key": "QeWPDgsOKrExGgk5JHMGhUugtrDR3IQ_2RVKIIxeD1U" 157 | }, 158 | { 159 | "pwid": "39", 160 | "key": "a5noUqyyijROQKnhaBQT5uBHGFUFZ1C5FgUblXmYQMU" 161 | }, 162 | { 163 | "pwid": "40", 164 | "key": "wTLj6aWFPud792GvTLv9ev2dpk_9ZtSlNo6_LZEaJ80" 165 | }, 166 | { 167 | "pwid": "41", 168 | "key": "lwMQ6kx4TYJDQKCIGGNYm7TdgTlOvAtSiGtlDNqMInM" 169 | }, 170 | { 171 | "pwid": "42", 172 | "key": "9Iw9bL6F9dC6NqTfhVT6aXk7Xpiaol07ohGxxZsam-I" 173 | }, 174 | { 175 | "pwid": "43", 176 | "key": "YwdUn3PrGU_RMsdtVVGBv0J_tYTf6lm2Ntq7eEhBEbI" 177 | }, 178 | { 179 | "pwid": "44", 180 | "key": "FrZSzN9ZjQQIgL22PmCMNY1pYE_QGAo74dJxxO4Pfjo" 181 | }, 182 | { 183 | "pwid": "45", 184 | "key": "cio9qu0Fw3qqD-JAVY9ZjctcqixlbqUiC7IpS6SqZ2I" 185 | }, 186 | { 187 | "pwid": "46", 188 | "key": "P2e03DVQIGCCksuaLXc5x3n9tc5_qIvUkekUNh3gHyQ" 189 | }, 190 | { 191 | "pwid": "47", 192 | "key": "6qkzWUdUX8efeJ7OLShevspvqo_LvxVlbxGB08qyp3A" 193 | }, 194 | { 195 | "pwid": "48", 196 | "key": "en-cD1YQa4Gm41Loo7cFr3Q5NmAKR3pq3VYt4W37xY4" 197 | }, 198 | { 199 | "pwid": "49", 200 | "key": "Qvrdm5Mer6Vz0Cm1tLDZ9594y9pX_DyEd-ZSpUTw4OU" 201 | }, 202 | { 203 | "pwid": "50", 204 | "key": "vYyiV_zPr35mqLeww3TMc2a1PU5eWlU_mbWj0ZfH_CU" 205 | }, 206 | { 207 | "pwid": "51", 208 | "key": "IC-Qr7OFyrcC0YHoAbciTddHZ4KSyD5pLMRZyefWn6o" 209 | }, 210 | { 211 | "pwid": "52", 212 | "key": "VY1a_aizzfrh397D7Scc-F9rFHhCLbA09PMm4JMWfEc" 213 | }, 214 | { 215 | "pwid": "53", 216 | "key": "zaMLbrgf5IshrqBjdEYG61s20RMEl6o-PpfSOcAMCmA" 217 | }, 218 | { 219 | "pwid": "54", 220 | "key": "EUwtaIZ56jQ9AfM3lnXq47CtcicgFDqGmzWYplK0MSw" 221 | }, 222 | { 223 | "pwid": "55", 224 | "key": "OJGp3iPwUY9CD8ix8cUfP0K4bj7Mlhn6j_XXY_QCIKQ" 225 | }, 226 | { 227 | "pwid": "56", 228 | "key": "vcYRobyDQnNkqRXIFi54MX4NyFqmnmnVCcUUXrl17Pg" 229 | }, 230 | { 231 | "pwid": "57", 232 | "key": "_Od4B60_2lyMq_PeLazCI4XYYzZTqpoc4OhkTUBqT0I" 233 | }, 234 | { 235 | "pwid": "58", 236 | "key": "MJLmvGxFN5yBfZvB3KgOznQiIR-efoyt4zvTcDzGKXg" 237 | }, 238 | { 239 | "pwid": "59", 240 | "key": "p4lqkfQ_0MBKleyww-zKOnbyDVCDSjUMMXeXPZdt3qs" 241 | }, 242 | { 243 | "pwid": "60", 244 | "key": "b34K99RQcYtUKjVdhIpAUm7fataTvG9ZtUjC9GJfybY" 245 | }, 246 | { 247 | "pwid": "61", 248 | "key": "cIeOeOw_Qb_0xRS-RxP3P6bSqah5MVuN6U8RdPXbLT0" 249 | }, 250 | { 251 | "pwid": "62", 252 | "key": "rm53O5OsjRAWmGrpX90_Rx5UT7fagbcdYj7VpM3mq9g" 253 | }, 254 | { 255 | "pwid": "63", 256 | "key": "X-iCn5mR5N1LuZO2KdyG6ulyejy4qj5Cun0hgT9vIBg" 257 | }, 258 | { 259 | "pwid": "64", 260 | "key": "xNu6HRVqrn9BVWKUKHskEokWBmizosar3hNrhYxe9qg" 261 | }, 262 | { 263 | "pwid": "65", 264 | "key": "eFZhOUiQPObijdnRToVDoJ-HNNgKLAIAy48-C2idCe0" 265 | }, 266 | { 267 | "pwid": "66", 268 | "key": "JH5W4bV_W1igFpBUL_FRazt9QVBzUQt5o2VtrkE3gds" 269 | }, 270 | { 271 | "pwid": "67", 272 | "key": "6bmKyVsJSSF135dtoerUbnEagOR0ebJYMcUTQr5mPq4" 273 | }, 274 | { 275 | "pwid": "68", 276 | "key": "k1Bzmj8Rr6eqh_UAfDV21aPoz0WAsd25tlbFTddV-TY" 277 | }, 278 | { 279 | "pwid": "69", 280 | "key": "gw65IzXrs5MNOCj-f4iBpb0nN13K1nOW6Rr8fNTopCk" 281 | }, 282 | { 283 | "pwid": "70", 284 | "key": "4L-Lk1cgH5V8QAYRKp243_T2yCRDh9tMCeOHGp5NHj4" 285 | }, 286 | { 287 | "pwid": "71", 288 | "key": "drt-WdVxLEEqGnE2sSKfBYkI5_AaezVOvs3DyF_Ad7I" 289 | }, 290 | { 291 | "pwid": "72", 292 | "key": "zXd3lCB4aIEIRH4Hd1_u_wRuo4LSwM-96qLnjuF3Q5U" 293 | }, 294 | { 295 | "pwid": "73", 296 | "key": "YKVQS1IKQV_j0QfO-b4azBn3j6UIPhRC0Mdx_CKqmbI" 297 | }, 298 | { 299 | "pwid": "74", 300 | "key": "N7FK0_z1Q94X24caHtt8FT7RAoEp5VAFV5G7h7tCbgo" 301 | }, 302 | { 303 | "pwid": "75", 304 | "key": "pY0U7r-hc5L4xip1vsNtOuHh70WJ7p-m5w1pPN10NZY" 305 | }, 306 | { 307 | "pwid": "76", 308 | "key": "WkOT2WawukN2jnW8ADxzMJvohb4PT7PjJnG0NHNm7Ls" 309 | }, 310 | { 311 | "pwid": "77", 312 | "key": "opRpbxyVIgCrdgMZcYpT5E0VyAr20hcknCJN8vKxNcU" 313 | }, 314 | { 315 | "pwid": "78", 316 | "key": "YdklA-nTZaqd9QKIhjCteMTCKiCPkrOdjImLQ3DQ86g" 317 | }, 318 | { 319 | "pwid": "79", 320 | "key": "t4L4bv3Y4PiLR27lkNh6wTtAbarsAKK8C342jc-GkmI" 321 | }, 322 | { 323 | "pwid": "80", 324 | "key": "uLRP_jb_2nMiz5B7q86pfqaz_kTyqE9y9QUvo8RI4K4" 325 | }, 326 | { 327 | "pwid": "81", 328 | "key": "vWzGma-Xe2j2Sar58OSLH_G_hsNLXZShxZplXE3Cbpc" 329 | }, 330 | { 331 | "pwid": "82", 332 | "key": "p-wnuFEXYoRJXZ5XzOszBK5yH6DBv07ZWzFeihDKDps" 333 | }, 334 | { 335 | "pwid": "83", 336 | "key": "-MI5zHhA2bFxe-PdHcoO1cHt8yon_CMMmg3Xp5F6CFU" 337 | }, 338 | { 339 | "pwid": "84", 340 | "key": "6ZSymKsZkX8WH8-iOktyxcb2p6Xon3Ss1xP6kmborWg" 341 | }, 342 | { 343 | "pwid": "85", 344 | "key": "YgTw6_uA9UYAnyqA7S1FyQV0ou5mBxUMQ59vUp_lD6Q" 345 | }, 346 | { 347 | "pwid": "86", 348 | "key": "iP_QWV2Da0Kxq3PJMjOb-Os2b1SzOwfSRPOOxjDtW6M" 349 | }, 350 | { 351 | "pwid": "87", 352 | "key": "S12wpS9Mf6WJukwq2BJcJqCOt0b5QcvniHAwCokyk8c" 353 | }, 354 | { 355 | "pwid": "88", 356 | "key": "s4a3MBwX2GhinhcsD6JLV99-olFwx5myM8EKJSf-40o" 357 | }, 358 | { 359 | "pwid": "89", 360 | "key": "RLChmbl08WiqQCEfZh50mxp93uTFlDhYM5Z7oM9gocQ" 361 | }, 362 | { 363 | "pwid": "90", 364 | "key": "6sxXN6ke5ks4LKYfrflOOM4JWv1-BTL7H9a-lJzqPiA" 365 | }, 366 | { 367 | "pwid": "91", 368 | "key": "RmQJgfu16NyRantWyUgEGWigUzv2Uw2VxdyZX_qwryQ" 369 | }, 370 | { 371 | "pwid": "92", 372 | "key": "PHCgYpq6A1YBgRhdpzdShRIsi7IKetnABCg3l1arahw" 373 | }, 374 | { 375 | "pwid": "93", 376 | "key": "aU3nAoKbxDQBYJxYM9jAK24TLOvRPWtclxn_WBCsqQI" 377 | }, 378 | { 379 | "pwid": "94", 380 | "key": "ZGcJuUdG0-14W4yN1BQnjA7CzNkWyRZE1AyCcTkrl2s" 381 | }, 382 | { 383 | "pwid": "95", 384 | "key": "lLkplBmET6PklssJbvkdOdgsfEhVeFo_SojnlbXfCVI" 385 | }, 386 | { 387 | "pwid": "96", 388 | "key": "eKFw_DwNCxrCJEsJRWX4mKVQUAHHcw8mpH3AKA4guEk" 389 | }, 390 | { 391 | "pwid": "97", 392 | "key": "0hSAHdXRKbMv1iYovRix0QBJYTlz9GYkE-WFg0w4ziI" 393 | }, 394 | { 395 | "pwid": "98", 396 | "key": "O2Y9jzgwgUmxSUUZrK3ehEp1rKchGSwsGhNOpEopJvI" 397 | }, 398 | { 399 | "pwid": "99", 400 | "key": "lteFGtppZYEvR4W_bqjrPnYdbSjcrwvPBzpSQCmpgp8" 401 | } 402 | ] 403 | -------------------------------------------------------------------------------- /did-security-csharp/Tests/did-security-csharp-tests/Pairwise.RSA.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "pwid": "0", 4 | "key": "WvbN990C_eOOT9qgM79bh8CPhQBsfavIbdQi4r1VW78yL_w399h228BwGudaJ2k5ReEhDcQ8NzvxjUUAwdWEUy9BlTKh6UIFhtAqogtL3iLiiClRAHS0rO6El_rKLgkrdQG7fHtYh628DY69N_zFI26Xriv0d3KXUseOg2Y0mnk" 5 | }, 6 | { 7 | "pwid": "1", 8 | "key": "Baf8ZFCH1oomv7n_DvfNy5qmmJpgF8pq4_EVe7-iM8g7DWev1kwmO96LAeXoIG6wFAKSbRvKDCE70KgL3pA-5CcCK7wXq5NaJPt63Qb_K22HQOwoEe3h-qWaD56DlllEMtsAycPhFohdYvoUL66NoZ3ZnyWOKjBTK498SR6yqgE" 9 | }, 10 | { 11 | "pwid": "2", 12 | "key": "oU8Qddc80c0WQVosSSDAAoKcEMEprjaZoyP3ZZAgCzuxxx2cjDyCdOIzhwJjei1OG6FLspRwPdaYJjjiV1FMkwf8uOBey9z2soa1wxbSOrlDNJ335Lo4ir3li_VPBlA7AQp6Yi0HEYXDkDeUJUtth58AUgwcid9QztT7XLkfbAE" 13 | }, 14 | { 15 | "pwid": "3", 16 | "key": "UmhSnVpv5fRyAC_Nyx-PJrfRob2VaHQa6G4mRQZDTxma4-66WOSDEuapqXhkFhF_QK4Zq3pUNheDdorU0vy8wzIK_4rtx1B2RYOVuhbTv3HcHxw21gFh_dEbrC_jVzEymBIHDKnyFbKr1SuJI1rDaIIhD6IOWL-s8iktO8LIISE" 17 | }, 18 | { 19 | "pwid": "4", 20 | "key": "YNu7Steme3bO5YvGRvjl6i8ue4GU44C7Hf7dfK2xguJHTfrHsH_hUFURupY1fGX6zqo4qriO47AoPU26qb60DlifKEJDV-2FZLtg7M8ztGeMwMs5FgptztoXl1VuJy5F_RVlZX1o6MQ61slWVeUh7zws4lRIh9VTw1JOO6GtWAE" 21 | }, 22 | { 23 | "pwid": "5", 24 | "key": "ONXMTe1h9Sb-30ZAE7s8XPbBV_GO7pIK1hwXNqbWMqP3d0nQlyx472XE-YC_za8dngYZzBZgr62yTJwiZmvXGLNj0nMKcLsU2xvjSNWfOj6sZXjhzRwhBJyzsx9Uto1eJ9QisEgnuUile-eTIl4x44569SO7JqOh2aWsjKcnkRU" 25 | }, 26 | { 27 | "pwid": "6", 28 | "key": "J14vdccU8yn5oRHa_tRu5W0nLat1sKehBAa-GJsghgSU4zElcKJ67xp4eah1LjeQB4eMfK5qeUMhRHR9Ab7IvX6o6ZXeIa8okJqZaTvSYta2hIPrOTD-NFz4kYaPXqZvzAr7Qvs3QyFcYWQJ4VvSgBN-F2JWJNRc0-72ZmiHtBE" 29 | }, 30 | { 31 | "pwid": "7", 32 | "key": "WEHPWfAG0qEB93Ls50BLET505fjhr4kFTaag8Y36WHuz7jkLykEMVP1N0w7FN7s2GNDgVw_mzi0NfOoWWw4aNT5EtpLSzXXfviJaN9ox-NowkTLumW3SxW9nzRwiRlPjFSLjm32Ot0uAYyd2SartYw9S0AfvZ1D34l5SdMfXlkE" 33 | }, 34 | { 35 | "pwid": "8", 36 | "key": "ZIESic7JTkGuwEZyiufsXwuosfaYaZGiGkszQpUCwH-3NvoUaM-56lhh9cs6ynKLSkTwuPwQZ9LEte_0PlqSBME6egogfI1w1lt3McfHBZ_cGhmNB5mtSx3kKSo0mqZcbMEiUQjb3V2XwVtoUDqUkxnvFBlC2Yfz3nioeDmrWcE" 37 | }, 38 | { 39 | "pwid": "9", 40 | "key": "JrhMLRQrgIxomWVX7ATclOxr-u57FN1nvilg_ilSgmT0TRe3Bs4vJq1flwvt-uERa2H-Dp04PTBwr4HDLEnbkHcG_mtmvbioYAdCOwKyIfeasPNq75mG0nIDcZhLxaCNZr84AwVpYFOnuJgdQICQr6CLmfOQkKgCG9Cluh-p_JE" 41 | }, 42 | { 43 | "pwid": "10", 44 | "key": "EM_fk9p1vZ1JhjZBVr6A2vAxFsJCRRL8AegSnDPshJV1XdRFvqHTPmSCntv_RKh053ymRkjkVcPCGSsmRlWNWjGxyJHm3qh8TFYIvPjTQQrbztSDV_C5S4iSPHiXG-E5FHSM1bPRbg2vT8ROjsgj12VeC65Kw6WCM5o9D7YQoA0" 45 | }, 46 | { 47 | "pwid": "11", 48 | "key": "J3puUYCdecz-UqfG1v551GatPcmhKhZp1jnoCLT8LPxJFGMdIX1BZXMspNfJvgrDdES3mMfbpPnQFbWsQ9fNy0bXmadRcb79B0pn8_YFn922gaEFvq5Lmsybm4ltiQLgm3DzxBtW_Y6enUq-XV-R_ZqWXtvQ2eWjhRfAl_vYMGE" 49 | }, 50 | { 51 | "pwid": "12", 52 | "key": "JyeYKwhwiXG7KO60T3zxWvlOo7x0v745dj3w6HFb8ViucLkUUYIB80xxAw833hF7IeXRtdELplGHCuEkjVCaX3olD6wyrmDQtBswV3PFncpjPxeQM-ilCbC42sc2kJUDjm-KG_qgHv9WqRLzKoeWe-2x4S5gGKnDzvrhoWuQU1U" 53 | }, 54 | { 55 | "pwid": "13", 56 | "key": "GemZlTulN_z6wpeombIip3zxFbqNWYRncrIbGXQTsCAljB_zUYwOh62as3-nlb_uXV_8bxvSdPMgcpBL5zTbTG5IBFQurc8S1Bh3tQ1bE68QShavSbOkdE8Uvb_7JLBloaqVAxualOys0SXAATK1gSKADLLiMzZ1NRpaQaYaWrk" 57 | }, 58 | { 59 | "pwid": "14", 60 | "key": "ccUUEqWMbZCNT6f6AefVRWMKCzZUUvi7lZujMJys7E3v8FhtdjmNXcAaK1KHRYTnoaSC5lM1Ts4KQcWjdfIbW73OHArZepeTdg-_R3zOIUS-x85_vfufqzkzZtMq5AwPRQLl1tM7qgahL_Bikfxmqi6MRUwGWkHSNJ0EaIwYDgE" 61 | }, 62 | { 63 | "pwid": "15", 64 | "key": "GJTDb3NAmvwV1Ukgo1L72wdCAsrpl2Z_HpX3WTlCXhjJpj4rJzJoIxUHx_PxQDzO6JwjaBIDmzZYbQmNoqn9912rLwgavDDZVZf_LiqrXZiVhm2NCcoNkoASLTKDNriS6lyDvAsGj4J4D7yvc5gMBw5AwKAGslMkn3xTlMzThSE" 65 | }, 66 | { 67 | "pwid": "16", 68 | "key": "YoTHvI7x5bqVkfuCe09qjSCPGurj_Wy6MGiMN--9NTVQ9pOmPmc1Om4vYhQ5ZdJmnltf8lIhd-j88kXh55uzfRzxyDHQslT7XrNg3mHcy70Mwd28qaG-VYKbG95D_6Lkbo5HhLq1EbJONirKJCYFq85KkDigzfc6M745MrsFswE" 69 | }, 70 | { 71 | "pwid": "17", 72 | "key": "XyvGNmn7i9SqA38V27dCZP_MIuuWkGj6RgtgtKacASpCREaQl43UEeHEXkzYojo-HnN6sfwgCuFA26DGyi_QGX3VRuN49X-WpP5tmRJnavZLRzlbeUpI7HBgMkIaJfrsvEZqTN0XV91xbtAJYDex9cx7YSlKUpVE8WvchrsxwJE" 73 | }, 74 | { 75 | "pwid": "18", 76 | "key": "A8xhVxXxPsZu9CvJgNIr0Tqsl-KKwPqnCN9wuFOfWlw5hgo83cfQWveyw_scx8UveiM1CBGtukfqfElPty6UVxpdNz2-s_hUFARTnRLzO5YmotOKh-IsGmqctwnARV-LlZj9zI88oJ4PNr6cr8HrB4p1r8165L119q6yxK3w6ZE" 77 | }, 78 | { 79 | "pwid": "19", 80 | "key": "QWbCy3MJ1IuI6JgI6SUmMcZHRltIw1t7_Dj1lHhyGpUMIPw2sh6bO_6zfMUvP2cvEkBPEf_meuBbyuuSz_JKEBd_XeR3zQ5shflbOGRgezab08OCtxyhEw801KjtZ4FmlRQ4FqVGdpSioQs76I6PlubzHDIZTYegrjmsI03_usk" 81 | }, 82 | { 83 | "pwid": "20", 84 | "key": "J8r_A3gvlk4ycm-_QAoLpZsCJssRUPL1ZhYW4YtLTJAa0XqfOU9aa2Ry4YvHJRlhm_pM8xAXJPfnzC246rZyPTRZWlQG4aq_3cVk8OJ29cw0WpLrzFDjU4Au1MqkXZXqXvUwVvUd03Nv7Ltp0p47bzpJjWxOHu2BP3aRnnQ1lNE" 85 | }, 86 | { 87 | "pwid": "21", 88 | "key": "xK31kl0Kc3JpYFr_jlArH5inYEIVKgEfrt7nqvAdTo6_c0Q4WXkJAw9o1f5s4ZWaq8b9ENKiF1RA2I3Y2IAD-5jhg0CFz33I7u_-TGGDgBw2LLoygMFdV8jdU-EY_bGBVRdMy7mh1p8CmlM_I52OEtJHal0WNVarnj7pYmZTDJk" 89 | }, 90 | { 91 | "pwid": "22", 92 | "key": "GCvyBsoDeEUKxmrm4QWEY6i8XEoFwLUQO-oO7oDVyHRj4cHJkOfUuPwWaa9AMEnslCFR1qjIj5ZgPQUwRT0Rs7imNLBP6MgRO7XfLMVX0YEk3hZiQ8Td5mc6kuFmBAYtQdvYfvOkfnR5_L720q6V0aWm-q3REWqo4qSk43l5FOE" 93 | }, 94 | { 95 | "pwid": "23", 96 | "key": "wiwjyRL5sw5Yt-sRCrWuQZhVnBLvzuh5Y04Da4eHEw86ahF1jIE6eYiIOR-fu7AUDGMZmnpQ_jrJ5Upn4AHCycUqXu5x36hZRs80pioLAzpO7L9BKKv5L2mpTL8ifNLxB28uZ9uThEpLo8eaKMz0PV9peO1rR9E2fu8IRvC2dQE" 97 | }, 98 | { 99 | "pwid": "24", 100 | "key": "G5uBMpFtWbSK35L7YLJAhjOUmE_62GbjGUt8H0go14a3iufglq65kAjjyguA3H2bIj1svWGxl0XXKOz8i3qcRakdk4Dcg1GyD4Zh9OVJrhsfu0oyBcfpPBO3vpVNegivLccBUmMhFk6VQ7bv6X7PAEbeCfyJl1eHUKmx_RFlVwE" 101 | }, 102 | { 103 | "pwid": "25", 104 | "key": "byFKeUdQdgL3g1c6cCI1SfvKKbrdVBV35qvHcU9iOKs3FmSCY_obkku-saoQsl7gCwR8_DdfuGNRtBvfCqum_zpd4e63vq5_HLO7M-Hesa-mnxJdaK-mW7665tCP4aUmrl-OHnywg8mKWvCeKhIptD5LhO1KEr5ZTLiA3PjqpnE" 105 | }, 106 | { 107 | "pwid": "26", 108 | "key": "X3ilpJT_BzTfxzQI2LVEFMr6546GuObpa0Et3TehLpEUtFgbgbiKFOAUOp-zgo24Y1WD8s7Ro2h-Q8jSwzs9nRZnncKZeeDLdUP_70lO1r0GdyBFIkd897Uz8taVLcNpb0cvRG7Zi6Vx9CQTW_g71bdtGkObYCnVhidl8qjFJAE" 109 | }, 110 | { 111 | "pwid": "27", 112 | "key": "Hd2sgN2b_SylhFxvSHynUlVIlwg4edtpozdtKwmQbi7dofOwZJLFa2xg01piIAPgm8oU-DZ75KOp0sM_oPUMswF3_5eFq-AS8EZBQBQjc61U1f2xxck-AC5aokgi3xyDWWdk7kAvrexsUaMkn95qwBAJWWVG64E8xQklkoeuvFE" 113 | }, 114 | { 115 | "pwid": "28", 116 | "key": "GfrY838TsU92KhAkjvfSZYZBFJ6hMjo7_XGlrefQoEeaAfkiqECqsfiLYoBBvEoSYnNDSqgleg0pak40VFPYLVhP47rAlM8yq7L0x-sOC1nr9buMGanmDnXq1JENIxUMPTeAUvvVo0Ar3wwp_TpIOFEijtrJxfZILW0ls3eQpkE" 117 | }, 118 | { 119 | "pwid": "29", 120 | "key": "NZNZ2oV-cTKx63PoFgkcUUl34ixzyAj79K77sp8bzremrxI1glx-qgzBwsn8akfRVn20W-iuMIGtsXMBJcLyLD0z0dKZuJb_7O0l5sEtV4pawNzC0CCw9zXkMZ2FKx4P4smWVpQBV16I0i4P55F-O9SgQFBMCT7DSUrsySZoELE" 121 | }, 122 | { 123 | "pwid": "30", 124 | "key": "bKT5rrna68u4D0ibAnoCtEc38Zeme4ivlATpx61_M_BKL3SHLeVRS_eirBdDcpRD3ILQh4VlY055d_lxZLW_kleS-YgUHAuzu6cJwXx90eMYkqbeAhOD1a0c8lN61pYIYNqFSUxVCgq_biVf3QXpLdF6cdmsqAZbAOAylgRtuOE" 125 | }, 126 | { 127 | "pwid": "31", 128 | "key": "HZ12YGppD0dAAym-BMH7aE3a2ORYJs1_X5I9gwQ8dJYRm_EvHbvcUxiAwrrSUDemsPcjBhjJeWYA4AdxvjAldWq0Av8Uf37A_8qp94Qy8zbIfd6W-kSWYqjimIcEvyetAOVIuXOVCJUBcEGPdFMpVuV-mH-2MtB3YMBc0wYvJHE" 129 | }, 130 | { 131 | "pwid": "32", 132 | "key": "wd5Su3c5qaP4f-M1anmTg-i7xVC_0PwA_ZbLs6VXUOw82OOGsPhz1EDQVrZJfpu8J_Dx4vzMMUzjJNRd1Rgyvh-SYmOpqeB2Ll98p8eiC8pH86O5LmR4dcgk-BHl_ZSt6qZ4f4r0Dqg5VCYQMuSLuem2A9tMXx2H4PvXxnf1lzk" 133 | }, 134 | { 135 | "pwid": "33", 136 | "key": "pSaEX-Bq-YyndbWIzWI4evO_C9oBLc5BREwW06rNPkw6aLtQMOpxlln2U4Oyl1STxtoHlF78CZ39gfi3UKwLdTb8ysdfGI8jtEhbp0uSHoncqwpQVr_XMkTQHYMbz9n5Wg0qX0jMVq27yT2qvzlz3eMHU4S8Ut1nQLVbi__yRwE" 137 | }, 138 | { 139 | "pwid": "34", 140 | "key": "WNp8ivpgzsnxGfwLr0IQvQh4bLrdtlq-416GImOa2wL5XN7oQArgrMqJZpfuu-DPBeX8yQYPfZikwZK2cnQTYa4gjjdfYFLuXV53DJF-8TpQmK6Yu2zTg8dc3THvKWTC7C9BJJNap3iK7ThgH56Ry79qR-Pnza4wdPU6ftDXEwE" 141 | }, 142 | { 143 | "pwid": "35", 144 | "key": "HCn0DNPs-bRYoL3L5sRs_iRLSGifN6Q3dblPNvLQ58r3qr42VP1R9qibYRcBfBdJxqAwFOv45oKcAX0A-Z8NC6waCOjhKZ79Vb3Ywt-rC5B-hEkvXS77m2_fCS9SVofAhWmrFMHKjxO2V_KF7N8-ngIcNr_Ino1Kjf2X-fFDzsE" 145 | }, 146 | { 147 | "pwid": "36", 148 | "key": "pZ2x4FXq-GpcD2sF-GreHgceTOBrAOUxPaTOuOl9d7U_1ZhPz0E7gXT0stRGcfYaS5SrDeWt5TuxWrHGvASvHp9A5FuRWoeHCnWK2cy0j5zYddqjMmzbwJgo5eK9AylZc23VdJ51cfmX8KNLWR4Ujku3YtnqBv9-maqYv_QV4AE" 149 | }, 150 | { 151 | "pwid": "37", 152 | "key": "VPTEJdWA73hnaOrIXxhExwJNaCfx5mGF2NIKaAp9UU7niKkVCEAUYB8-ljdAuvQLFBmdLf1-VuUGVvs4P7LTHR0_vaC8-mmmP3cOa6gSBRCjao3bUVFamVd0Gdz4lna2gWabs10FtLWD6aWE_HPRHUk8SH5UNY5DwwSW_jLWGAE" 153 | }, 154 | { 155 | "pwid": "38", 156 | "key": "JmLjlKYEChOqPGiSaAObpj7zBXmsmdD7trBdKIg42W6_Efx6a7fuf3PLQgTFpLi_BVZQd8ju6r--44VXkd2e_bhwuiiYxa4GvBHUgmE8eJ0hq2qjDSXX908m5Ep8cwydxYWRPSgbg8RzWzdn7iY9CLKjOAa4O9ZR_BXvRp4UvYE" 157 | }, 158 | { 159 | "pwid": "39", 160 | "key": "Hb0Nex7hpXW3nW27QvIPsOWEE3-j0PtkT3OXQj2aiLWx9V5OuKo-le9t1zl92O5PAorTrq4xiXlQcRmlpFFb2MigfyH2tCFZsKt5LJEUPcbDKd9OY7lJK0guYYvRbHYA6r745tGtkQ03lCl9TtqcWerrEWuHuGNoVNCYGDrj0Fk" 161 | }, 162 | { 163 | "pwid": "40", 164 | "key": "EXzmuwcmbwFgQXkyYDJVn1U2tpx68A1UvsT-oI1i_eWlmGuA_qfv2X_4fF8lzU_pqqHP32MmzfZDRZNvd0CVTWmcnfOvD0Uq6788w2ApfnpZ0S2vlUmC91wJ8e94tGpIjRWXwGGCtkOKx46PZTh_UOfFyoGHGtD5Npt9DX5YOBE" 165 | }, 166 | { 167 | "pwid": "41", 168 | "key": "AWSaM_D-S0eQmJlscfUc3IXhKzKAxbqnoGlHJzYgHXwZne28r9UiAxUnMxCVEwVMMp861XAmXfT43kSUINWkWRof-rZ1OQRbwyilfFcYavnbVSL1aAhOuWebplZgBcAxVIz2lmZC7mV68-mA6Jt0ehJGhwfBZLa-84FUbbs5TsE" 169 | }, 170 | { 171 | "pwid": "42", 172 | "key": "UjKKekg0r5qdyS06EESBj5N34oSUwMN8sarlAD3vl6U-PXgh4quN7QzYG0MX5Z5xH8y1RjlwyK6JMdPNyjO3UQmYx1ksKGpcCII36Mufu82E9wCvD_wuWE6uNZFTsobrcl2P4Yctsr9IkAC-xA5TukrCwSHSkgB47kfRGgOrrJk" 173 | }, 174 | { 175 | "pwid": "43", 176 | "key": "SocL2_H1Fe7FO0n-Hq_CY3r1jq5d8IJvBHzEibSdnR_iCIvX-GU2EqoBLbxnt1blIFzv88moYLDVum47hYTVRS8yCkFk8FClRp9-hRfYi2PXfyc99diOHA6aoZ3AG_OFKtp4I-UfXKtDoiENWBCAGWOBoRozg0e02LX-d_HtXCE" 177 | }, 178 | { 179 | "pwid": "44", 180 | "key": "NmnYN9sjj82nkLR1mmLXp3fgWZB-X63mE8job1Tv5HEeBLAtfK_aytP69rY8c4uHThKGzbIPJvC5Rd6r7EturqMAji7KeyRC2e5_JKIVBgFg2S3B3cGUt6I7W-yMsEGK9heX-Urb9PmfBqunJTygriA8QuHmTxADh2P3_riIPWE" 181 | }, 182 | { 183 | "pwid": "45", 184 | "key": "X9LLevOfOePRTimt6x3mQKw-CXS1IOPUADOeW1FRJiYn65NkaeRjCPo6K9TBVuQxUO-6UNPt0gv7dn9Af_sp7mgt-ZtCGtUgzSbkHvzixyE11zvWD3fgyYU8_Okv4tM-ICuNyy4s62QVM1YnUjeJiNetPZkMOM8_-nOjfybWIXE" 185 | }, 186 | { 187 | "pwid": "46", 188 | "key": "1ww2eZkLKqReqRnmXFm--CD8g2QB3ZjXD0N-xdr7ZCC6Qyd9qcYcaoeMVF91AlfyLNKEFLfOfZYJbqwfyWJSk6F35mfj3Ou-envirlIA3ym_RXKqY-SxOomWYkPJJb0jjDB7C0PIlpch1s6HRjAQSgayazuUe5NnAcvA0XOtpgk" 189 | }, 190 | { 191 | "pwid": "47", 192 | "key": "fbCYefFtVq0A5RpsyHWLhFsiUslrBW5f4hX0SwY9NvBbq8DiWEiPPGY5y46YuE4SrFeGsolRsGhhCnwnpn1lbQv_uoQbFzn4HcpZVFLkd7o3GK9ASTkb8XtpYLQZt5sBsgqkuAMZ6kIxUhD5_vtWcvmrC_Eud_glmLC-nKor-Ik" 193 | }, 194 | { 195 | "pwid": "48", 196 | "key": "Vd-EVjP9pNRuKBjiAC3Z2UzOFECJEEVmcRGB1li7O56QjJNC4wxNstv1OnVy1XvJLfQKFYJculjCmHgucwkgVacugIZoDOszYvtgcd0mxs3UNn2ei8bZWfHtAQd_xmMWiD8M5_n1lyt3yqD2jypZf7stJeSswiNRgFTeWXFEAbk" 197 | }, 198 | { 199 | "pwid": "49", 200 | "key": "G7ICE-kocesjSs04XYEvQwVwK9wLoKIsd_UQ6e79GAJFizUaq0dBpFJ3V2L3b_r3A8zBxs_rgGKImVj37Jxt6_PRUYAMTZZS5qRsbnIj0U_qRPaYEBnCZtv6KHrGA5wuQCJ3_w7Q-V8kSyb8pZ7yxK9dApiSkypKA-FwlkVz-qE" 201 | }, 202 | { 203 | "pwid": "50", 204 | "key": "ULtmlygjOqwhpdbZcPhKGlzqZak--08AaTi3_ttJ2mODL8I6XwYOj-_aRz8xPaLFJDc6ftgShXM6fY1LOlgC9dAJVOzbWZYJAaLhnj3F1jfJn7q0fnIP9q91NwLo6QKMzFYgFnSWiv1ih-yJegCUttliMTUlWvnBTViR2g7bw6k" 205 | }, 206 | { 207 | "pwid": "51", 208 | "key": "Wc-ALRICtkk_SxbJEIZtKjVP2OXiTMBGkt_wX3F3p_lhSAJIPwnvRRfjC9Dlmi5qnqUSe2Wa6aP6HL6YzK0r3UI4Ml1AV_EwWiRDFOeEX4rZu9nDUb2j28K_jbc_438dCUkvI_4DFo-3WXLI-L-bdHb4YJ1PiaDqdjQcfyV4SaE" 209 | }, 210 | { 211 | "pwid": "52", 212 | "key": "kELSJjzpxilYDXweBOhYbZp5kF7UiGOCHzVky_lQzU6Z4G38Ns_sN_eL_JSFYdolauQzhb-fG943Nn4xSi0_KNoXmPC8vfj6DIAuT2QJ4fFLcF25YWuJukLN-J83uKqGCxkCNZq8IBKwJ86Qdd3oNvW-eBpoo5jGH12Pkb_2tAE" 213 | }, 214 | { 215 | "pwid": "53", 216 | "key": "Uf10KiKS0i48Z1BFTtQpOe9bXIzljmvZ_znUpietTkrX8m5sPHMxCWTYFwOUsXWux09MnWGVtgr0JBMfxgBlAQyWhhw5FN1LCYunFAqO_cC6HmnAQVmxyt3O7Pp1JxcRpnPLNotE5vdR2TynHQDve65ytdg7tuEz0ez5SbNpewE" 217 | }, 218 | { 219 | "pwid": "54", 220 | "key": "EcJ-km_lezY4dLJH_TnN9V8d4Cyig0ghNKvW0RinW_PSa-e3IZAFcoKQi_bIpBlpjQlKWnDz5YNSJY4FQaJqvea0lh9Yjk2L2-wvSy8LaHcaiSCWM36mKp0oc0V5TA9TECpO4rhgymRYUFvRoIPlQ6GS-q6v-2gqKsvqDEvnlOk" 221 | }, 222 | { 223 | "pwid": "55", 224 | "key": "cJRR1dCnBTkJvbeYpGiUhal_cqhnixZOgXWB2J43Vmai6y3fKY5m5bOn7Z6VD6BEabOCQKPJryfgvQcEjtCrj293ddcFOr30jxWmtpu4FhOjVhkwU2LJvG5gVO5fk3_ebKay-s4TF4DeWlkp0px9jDHW-X_IXguCo4_SVQRDLSk" 225 | }, 226 | { 227 | "pwid": "56", 228 | "key": "QkKbZmzYYfgVFk0tf4oJkvcau56uKkZp8_QVEPaEaYyojeukqP1qF3OZoN8uTSv9ePwrE3UOK3NOErCjY5ozrfm8ymRVPDK_V6WfWRsC2b9ucT4D25LIGEZ2RM-gm4ZpGS9MWUBXAYZPnIR-QXwgggvrUG5u8BS7r4LhLlXqbcE" 229 | }, 230 | { 231 | "pwid": "57", 232 | "key": "dc-8mz792iue_REE4qXsh8YR4yyWAFMvdqGjwAVICkyuWYXGw5uayKChrGFy9PPH9a_ZIAgAvE-AkeHuu3Rw3e82ORq1OK-yVjUd9kgMvDBMXAoJ8rNaGfdoz0Nc8sNu4KLQfM53TeUlfov4VzzPeWOVfakXNzzNQU_xWSebRcE" 233 | }, 234 | { 235 | "pwid": "58", 236 | "key": "p2HGGbH-KklpHlekzHYnovwg5lmep6Qn5O67SiblWw50SZz00gIDm4VUBXnmLeraxtpYKZxhDD2GTSdpATU5iGZjfBLdutzekAuOxMeEOAazrmFuLWPOxQa46XoqSnOCLj1Ts3mdnm3sEb-j49PqiEoiKhnb8uNw3BQCdg1yV1U" 237 | }, 238 | { 239 | "pwid": "59", 240 | "key": "LzCWSbtRmBrm27mEd0cfiniQ0VHVpWcGlXDCsrqbk5mjJX4F5P-x9i4X4ezSKvssuRMRJw4UTQ708OhHR-Znc7h6WUAai4uodYoIkDqnn9Q29tQV4jSqr5-GBE7VafgzO28K1iar_CTbs7d__2Bqzd8npEl2pinRPdN3NyhCRGk" 241 | }, 242 | { 243 | "pwid": "60", 244 | "key": "DRb6yVVz37n5T54F49SrlbvJPS9Xa3VHILLg5ip9Po_PCZ75cmYxNPDnL3zKCFeBsWI3sRkQ9o6c0gg_EaO1GTW924AhJ70qBtchjsBzYQSmp4llvfzyZfKVsbMl5NE3bye65XlLD7wKGkil0MTj42ZxWkHYL2VAcwvZDqQWedE" 245 | }, 246 | { 247 | "pwid": "61", 248 | "key": "s_q7ajUCWxWNpAWzqZxYpACqoPCDxlpk-DFE5Sbrw3iuas52NnfpQ486zrUYI9rPEwbAPbISSLlGOU1NWKM6oYB5UH4HCGugsFD2BEXL5gY_Xa0UdtaxwWa4KWWy1NNO5s1Ri7XqBvhWNwDVX7KnVn3UlOmrmuME1K9ZVG-y0aE" 249 | }, 250 | { 251 | "pwid": "62", 252 | "key": "BwRym3BiiOFGw-9QYc5sUJwyPtgPJPNc8HgzufmZctT_vbuI54hy7vJzhlyLvQ7v1sUdld0Nywje93qBveVWtG34OnADBfiXRMkLj-MGklMjft2ihF1UkVf5uoYhdgX_KnZ-ht1qyO5DSkqhmny9uF-zlN4Jlyb1Dzl5zrctXqE" 253 | }, 254 | { 255 | "pwid": "63", 256 | "key": "xGDpfjlvxyT0oC1pE-IGIQLcif-p0fI43tXCrMEfGS8gaJoK5z9MNHSoZsWfuWChX9Su-q5bhWG_4mXsYQ_-jee1cct54UxGw7RTdpVs5bJsyKUgEB2O0njnJeCVt6ZvCFEDuJxJ6fpIRmH0pjfXqcf5tQ3A84Wod6Yd-FBGWhE" 257 | }, 258 | { 259 | "pwid": "64", 260 | "key": "VvAFvo7OKNG2eiYZBEjSn3JIN8yZcsV94AHQQE9Q0lfdmCLDKypCf4jP0iCvB5iQe0AmORRz_dvxGt3ffcZkCb7af_Wr2MtDYoDjWJgG5BOunR1lDL-iKkO2LcCUQBUs7P70cpA_9VLH4z6hbcs4THPpz66rxEqBrefsFI0aWek" 261 | }, 262 | { 263 | "pwid": "65", 264 | "key": "knU2WrNdd1bKvmvUevgWtylicgF8LyaYiiWALfKF-S4jKVVey8fErcRjiymftcrfD3yxwB1YlMeQyuPk_5JqJHoyarOkpZSeL881Mh3g2HyYA1fnKJmxXVMOL-jpGTnKKJ_usiaLofL-7m1eWvPTb7nDllJThyIlu_3vQdYG5XU" 265 | }, 266 | { 267 | "pwid": "66", 268 | "key": "XNa7yDVKWlR5ZJL3n4KpT2ixybGsUqsGYX1ytkjDoNTMveFDkDWdltikDPLBwpU1WFrvfgOXrULxXbEXC5Lb2rL2zulDdJps3jY0KkD6ZK_6Qzc_DTWWtYK_tuPr_AMDO1OBMAlkS6LQ3EjrjyaVU1Hd9Y47H-z0zgM8a-akmu0" 269 | }, 270 | { 271 | "pwid": "67", 272 | "key": "SaN8d5LMNy7QDIKqq-0TWu0c0biIl-DylR-DTZbOfFvEVPprTWe1K2Ci9ze368rPDP_amXXxqE303DpzaxouzM2jPZpvyzz9Ur5DDvZ3cdSHQfoY7B2zTftqFY_cOpwdQ4aPs8lFBfEvxl40koqxWaksG_5z-aBJ58fup4NHgWk" 273 | }, 274 | { 275 | "pwid": "68", 276 | "key": "bwTXEi8EI_MLO0aAq5OX_VR9QdpY2OEOJWViiKo0yjbmgR6Jv6d5dbQMViQ67QsP1OGlgn4s7k_QCrHWm4WsCOafZs_WCYP2ZmpwdpKLWvYO8DdYHhIIBpgX_igpintW9m6i6oZu5j3m5ihej_rTkXjrGCHjCWntMHXS_8snKr0" 277 | }, 278 | { 279 | "pwid": "69", 280 | "key": "CtC2NlOBNTs-lnF5Crces2da5OnTlKJk2ewjf4smv8byZqaTD2WVDgypTfAi0zqn1I7hSYmqrZovXPj8IVb2_tEKHcseaOlFkxW9bRWFFwyganRUfgBXSh1b1Qm_W8BZfS1sLR3qt50pIRaxGbPHCewBFpl4AubgBQCN_4RiR2E" 281 | }, 282 | { 283 | "pwid": "70", 284 | "key": "W-PrYO5nRiCnoxjrm-XDbHNfToZWzrRHLLQR8geZEoETFW68vcgB1-Bu3axKbag4174ojfJTrOEhI0k6zvmYFasFc8mx96nYSb2hssetMKyKTAVDR9eHdr7eCrSWhiZhCsvDOs8pmegqntt2JM5lO4dd5i5mnVKtG5X3G0g1TUE" 285 | }, 286 | { 287 | "pwid": "71", 288 | "key": "CHPVCM9YNTBCma1f9Sa7GHiUZzYrsimtFdW00F194XKY8RM4u1sa7-_xNuJMQTv8xtKyfKw3L9n5UEAbsHW8yCLAYCuFwkA_6IDvG7tIevdgcWFc6ALN7r_RyL1RjanU8_W2qkDZSArueeyCaj6rLvYlJe5Kjl1xNbVuvMLq3EE" 289 | }, 290 | { 291 | "pwid": "72", 292 | "key": "MzZpa_4Q4Vxd-0HNudcBDv9qiVX61D4QAOSfyjddKd_12vS2TcQw49_rLWP7gBYSQCYVYVkcGzDeV2LDC-xDcQuwAeIeXLsIlf0fFtGDNIovNaXA5IBxTGx6ouprD0S5B4eFPAv1aRUZTeAadsEx0C3CkMRb0rM9OQVQkHFCJ2E" 293 | }, 294 | { 295 | "pwid": "73", 296 | "key": "mu-QBzF1W0x6U4hF2yIZ1mzPeS7t4fL7xc7Gqt5dMiesdnYstJJFb0WfLqpkzRIV-Xd4uG1-6prd2nlBTq_7_AQnMyB_U7ActsGR-wLK4qVK614yr3ljwFcfTVUHgcaUHn80Nm4Xy-qhPpgB7uYecl1v1bFiHyF8f9aoDefZX6E" 297 | }, 298 | { 299 | "pwid": "74", 300 | "key": "SX4iGkRqnuHkN4l7VO9iUEvQM20Un1YHbKEkz31TME2mTHVRlnl4kPCYLtxUPcg_ZbLtyrRXPCkmHWYx6V4pedNwde58K51cO4qHyWhCskvWa7JuP6hHTB5gtMxyqHQDtnVMg3COr_tHF287XhUyqJlNO4MjsBjUu8Pwu7-xb5k" 301 | }, 302 | { 303 | "pwid": "75", 304 | "key": "X5h1uacMRgiYk_0SSaVGHN14UQAsO8A6qZuawNYobrAoGu5Tgqee2ur6if1TRcRm375zKCKDaQNr0kDtSAGX4ILNYJM-HyFfQ4Qd9-V0zB2MXARRNpNAhluPiv0gv-_aTR-1n_CPElmg94C--w-VoVP_GiHno3PPOP_iLm8MeVE" 305 | }, 306 | { 307 | "pwid": "76", 308 | "key": "XWOZfVvQh4xkNtWrx_jD9Rodh_LZlpHOuWXLhJxGnWEHFYdj5nuMw4UdzRItqJM43XFVOKbPYtmByGcMRUs04v9sl7vN8oPo498VDptmxnO5pn_yNIBDfb-QyeDt6AYRYS4MyZ_60SmY_z5ZmvhnEOWrHBf5v0JFHSyuXgua1YE" 309 | }, 310 | { 311 | "pwid": "77", 312 | "key": "dSRhuVXWxEePTHCCNkAI4UI5TPwDBHEPn_FALG7thyMBVyV-hulabC4upLfQuV8g9lksOW1SdTHOILoe_6KJQPf501dQwzAiQzXnIJk3-YY0butRJxjWGeujhldL4NuumRoJf2YPbMNPdS28H4FHqE09HoVcGDGglnC7hY38r9E" 313 | }, 314 | { 315 | "pwid": "78", 316 | "key": "JYtX5FONnyhEBnfYecl6d8jVcGVJursvsLWOEmkzfbbht0LeVIOtUYObfBywteYlTxc3HtxDC6_QrbVYf_k1_avr3AjLr7GJMo9_3JYn-DXm2itjtr6uRl65IWntlRQjNyhEMMA69gKh8CEKN6E2lkZvQNmLH6S4-zzrvP6VPcE" 317 | }, 318 | { 319 | "pwid": "79", 320 | "key": "MIq7BsufNM2LOVR6eXnI4nSNO9Sp_o8TjycaUdSeqCRPdQ-oKZ6sR4RdS0uJHCo8bIc-4AxKtvkqT0RJnAdkU1emeUNiwzql70m9vzt2VSo7afeGKSPIiv4uxPoX6Ox2QtalrBpLc1vulWLLiSpcv8CrxQBbUp9vvqnefwFJqIU" 321 | }, 322 | { 323 | "pwid": "80", 324 | "key": "G_YaTkj2QW6lb_zEH7j2Zotxx_nHTx7xyCRB8NWrLnm0A4rJALdlkwZ3qEWZ7ZeqTNr6QsXqyY_og_qKKaxhywZ21WptChahHClysZ6bGvxW5AVAsmqH2Y-Y-Vb2SwtOJDCii_hLEvnETBOlvRwCvYK1jZnBf14J8dn0OJKpiNE" 325 | }, 326 | { 327 | "pwid": "81", 328 | "key": "OPFczuByT0PKYnDeMUyCNsdMCIfgYPr149qIva_HLFU4O-ysUjNHmKvKuoEWCCXEJXAvkGcsST7hLqCvjEQaDOnMQoARXXhSadqPjPYZm24tQ0_tiK4eCK6t0bqmaYWEdl-Kym-n7jeVLxHihKHxj96vWZgwIArMFsMKgl8-WBE" 329 | }, 330 | { 331 | "pwid": "82", 332 | "key": "JT8-puHxgBUZjA2TSC7IAF_tFiZs12jyPk7wNJ0r6ZMraIFKhsVo4n5vt1-26j25MFsWn6GT4yK7l06yaaYII8RYg6VjCBK2IbeXg5jM51fstwU3e7vEs6jXSlWGvpXfCQzUxJdIx8h9YBx6wiIfi8cLT6P9W5sVa8I1QG10oYE" 333 | }, 334 | { 335 | "pwid": "83", 336 | "key": "fSljqOCF6oeuYTW9P9HhlQIHT4LnSWFFF7tN1OYx9gNpoEB1Df-ZPmrTwleov3VQzLiz1oIzT3z4mabYmRyP2d4CF0WydicGjY2ooUxJS6neggFCsm0CKZgMDnipxrG7LPxflkJv8cDUYeu5SHL7faFs1gFZjs7Ru4JY5g9I7mE" 337 | }, 338 | { 339 | "pwid": "84", 340 | "key": "D1_10_wwp2eDlX8ioLHVXqnlSkTbtZqoNavluqxTDKgSk2Y_GA71MX2tetYSeVAFyrhBSyOHuBsN1xKYlmkCXi1dDhmCbvSLvZGi8doj0pRlPnEfzYzZSnLTsiXakWbV4XfwMu-hf_JlXtgmG14lHFI3oil4bV8_HtQP8-nATYE" 341 | }, 342 | { 343 | "pwid": "85", 344 | "key": "C80I8ExMIQUp4pgWpp3Xl8S_2oZ0xK-kXZd3RSsQoE6KcepTeiwZq3beAmQv-2PbQ9c7UXScXml8095HAkbAbpOPZik4ZdHGOFIZRP1CVeW2aGy0vzgh_ZGLk_1pwyaQPGt-44kF0Ev1n6C77tOe3Av67jRT1HLMRDPN6-yKHsE" 345 | }, 346 | { 347 | "pwid": "86", 348 | "key": "FioXLP5uoNCXVAGRpcNEH0qGN57Sv_wBxrhObtXzFMhrVedag4wuNOXaFghm8_xwqqQJD5QULiNxb0hbCb6vW6TsMjhhHib-ENBU3gwdSoUYDum0VVR58AC1zpQPw8fGjFkWfAHZuxdtr148NiFzTO2XYPKOIIpJ29HhKApzTlE" 349 | }, 350 | { 351 | "pwid": "87", 352 | "key": "OgQtkolapwN0danv5s8rdCPVuJjZAjntOpZ_F6LalRuUTMluZnMJYXKyE_BWEG0yLrNkcLvjnKG-_C1-J31wFa5GhVwn82lypwYQcJbdaL-v6-ovt49vcN66WhQ5_2wY65tOAn5NV7D6RbP4iAI49ieu9wKrZ8EOpU7aRDYtBGk" 353 | }, 354 | { 355 | "pwid": "88", 356 | "key": "O6cRZmarHMdZvIjpy3zIeNdhxGqJlv6-porKYm-vuWuxxRwdUQmbvBhDcSSZVr2TnbJnb9zc8MifErB4_SZASKCM9-l5Nm1wAsszyDs-quq6Dn52631ySLXCKHTnR6m1OckhsOtu3szsoq-60KsoK2IlONbcCa8JJ__FsA_uJJE" 357 | }, 358 | { 359 | "pwid": "89", 360 | "key": "RYgepgOUW3D7Qrsu2Jqz3cskFYTS63L4cFCF8OLyNaD07u7Tshvqlq9A8TgxEMlie-Gssf5vRSCcxyj8tjUxi_Vgv3kURAXzCDTo0_b-NYMi5Eq-ZP7rJ70-5C2aJivP-HWgiXFjdOlp36UICwTJw1hsQhpA0IKk6_LFjQxtoJE" 361 | }, 362 | { 363 | "pwid": "90", 364 | "key": "TgBIl8XmKbEtKmfYtTtn6W8SahvqS8Ms-xpkKMTsRNoQTKcZxMcCHQeH6RbkoD541iIzYYNmSs1wU12ca5nIT3AkdLtWshJj371oo09Q86nQFGmVcez-RAZ_Ouzl7DTRvLrrcvGk5JrnKGRU6saJVVMDqqiKA77nZoj1RE9uJYE" 365 | }, 366 | { 367 | "pwid": "91", 368 | "key": "iQyQ5r8bVhl5NWNz1YOj7O691Eh-RYug6M4bR-w0SRzM-UNLEFJkVDogoe_Rr4zjdzvALuro7qwyMlFsdenz9pOFQWEkDWySX9u1ueRUVq2yHZ8jFHWQHhDGxKRU_tiCZ1Bt_KJ94zmivvzIGPoddr39KqlhSC502Cmh-sCgVCE" 369 | }, 370 | { 371 | "pwid": "92", 372 | "key": "cZhaAlkvG8m_DDROOCU2Bqz3x6lCJplYM3Tvp2kaXuaGH4jrod8_21PLYn9aBaBtTH-WF4muVpZkuATkxDEP1_noIaNeA1U2T34eOm1E-hfVG8LRfE3A5KghL1ozKPnHiF-b3CuIwncPpmI9JB_9B-W2cvDHslsxuBEephxxYVE" 373 | }, 374 | { 375 | "pwid": "93", 376 | "key": "Q3g1P86g5YDPe_ZBkSdA29RwBl5Du5W_uDBohFbCc3uPPPwX6YTuv_b7RE05v1ypU5Edu4bToHDYoKxX1fa1mlYKrHWcefvIVfz0qbc862llAMajlUzx70lEEFMcj8Y6AxCebBj17sFYFyoDb5YXo1K2wi5-Ii0AAg_Ya8BjfxE" 377 | }, 378 | { 379 | "pwid": "94", 380 | "key": "CH3K9Y8GKFT6y5BvZUvdVVQWGz8vOJO8xSZ2F5t0bW5bNQLrUWV40wszeDL4mtmE8t3jBTWNRsEdDdkrT0VY71n5FNenlRlt7Xnd12c9aUZGQ3TkqUVPb1EK0l0gqrmeavWQE3hzM6OJo1br3-cN3_eV0Wlm-TrnjyxQFKF1PAE" 381 | }, 382 | { 383 | "pwid": "95", 384 | "key": "vJ8DwHVL0yzWRU2PoV1Bm2OnMtzNNxLfUoFUbMKIFWDwvc3PTPWV9u7j_KZQOAyTe2muxGOnCOUZSy2nyw-R99qZIrn4rBwxFl728D7HPbCkkSOQOCmaaFICLBmk8atzyTifPejgWCEj3KvOWrvfxg3ysq8XsB9-TdC5GlaxFAE" 385 | }, 386 | { 387 | "pwid": "96", 388 | "key": "R-P6L7LkbBKkB4o_bHvzMflcZdRjY6Wq2LsGxAEl-W2sBCdoIqeLG1HRtNRDXGpS_revMNCYofvzibA59xmXoWz1Yo4gzjqoVLm8wazcxoUxaFMUj1k95eRht8CupcWTDxK91IOnKeW1oWmAz2gBKxsEXGdq68sI_D0apMUwSzU" 389 | }, 390 | { 391 | "pwid": "97", 392 | "key": "LK7PdtBMUPGEWOJb7Lik9JmAtedT_4Ovuq5W9dhC7ii992fmtVJ45B5Y3A6Xv94HuLYoj3rdPEjwb-PaW8b_IpsmkhEkug6SY3dbO4nM1FAag7u4bjp9F6Xzv6I1RG79zkeWsxCALx1GcvVChuyudkkUbOjG2tYMZ3EfPbjrtJE" 393 | }, 394 | { 395 | "pwid": "98", 396 | "key": "FxonYkdWIdv_MUgnOdJqGIvMGBuXq7x9eCdIMwlLCb-_e13es_nmDlvnZKqqNRsNqUPRJJaihAVJVc8-VoXf_EBiAcNMqasyZ4VuWQ-31zglyUnkBaawbRxYHpW66Kt3ZI5Jv7zM0FmcFpg_YFGiZmE-nTSuQcbXp5yI1DJiIdk" 397 | }, 398 | { 399 | "pwid": "99", 400 | "key": "K4kvP8FNBVFelp5SEmXscv55B2lqn_u8fWPKfgIiZOhivo7a3nuxELhwv77Ny6MsaM4y2WIJ-4eyWcnwnrL90-alSff6b-qN7hnsBaQXPov6mPGDhQNALE7lZtCm9AJWkOOGMGzoQa29U8UmGNZ7ZYRCn4dzsEh7ordMxfpnBW0" 401 | } 402 | ] -------------------------------------------------------------------------------- /did-security-csharp/Tests/did-security-csharp-tests/PairwiseEC.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Text; 4 | using Newtonsoft.Json; 5 | using Xunit; 6 | 7 | namespace did_security_csharp.Tests 8 | { 9 | public class PairwiseEC 10 | { 11 | class ReferenceData 12 | { 13 | public string pwid { set; get; } 14 | public string key { set; get; } 15 | } 16 | 17 | [Fact] 18 | public void CheckReferenceEcKeys() 19 | { 20 | byte[] seed = Encoding.UTF8.GetBytes("xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi"); 21 | string did = "abcdef"; 22 | 23 | var assembly = typeof(PairwiseEC).Assembly; 24 | Stream resource = assembly.GetManifestResourceStream("did_security_csharp_tests.Pairwise.EC.json"); 25 | 26 | ReferenceData[] items = null; 27 | string json = null; 28 | using (StreamReader r = new StreamReader(resource)) 29 | { 30 | json = r.ReadToEnd(); 31 | items = JsonConvert.DeserializeObject(json); 32 | } 33 | 34 | foreach (var item in items) 35 | { 36 | PairwiseKey pwKey = new PairwiseKey(did, item.pwid); 37 | dynamic jwk = pwKey.generate(seed, 0, "EC"); 38 | Assert.Equal(item.key, jwk.d); 39 | } 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /did-security-csharp/Tests/did-security-csharp-tests/PairwiseRSA.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Text; 6 | using Newtonsoft.Json; 7 | using Xunit; 8 | 9 | namespace did_security_csharp.Tests 10 | { 11 | public class PairwiseRSA 12 | { 13 | class ReferenceData 14 | { 15 | public string pwid { set; get; } 16 | public string key { set; get; } 17 | } 18 | 19 | [Fact] 20 | public void CheckReferenceKeys() 21 | { 22 | byte[] seed = Encoding.UTF8.GetBytes("xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi"); 23 | string did = "abcdef"; 24 | 25 | var assembly = typeof(PairwiseEC).Assembly; 26 | Stream resource = assembly.GetManifestResourceStream("did_security_csharp_tests.Pairwise.RSA.json"); 27 | 28 | ReferenceData[] items = null; 29 | string json = null; 30 | using (StreamReader r = new StreamReader(resource)) 31 | { 32 | json = r.ReadToEnd(); 33 | items = JsonConvert.DeserializeObject(json); 34 | } 35 | 36 | foreach (var item in items) 37 | { 38 | PairwiseKey pwKey = new PairwiseKey(did, item.pwid); 39 | dynamic jwk = pwKey.generate(seed, 1024, "RSA"); 40 | Assert.Equal(item.key, jwk.d); 41 | } 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /did-security-csharp/Tests/did-security-csharp-tests/did-security-csharp-tests.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.1 5 | did_security_csharp_tests 6 | 7 | false 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | PreserveNewest 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | all 27 | runtime; build; native; contentfiles; analyzers 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | PreserveNewest 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /did-security-csharp/Tests/did-security-csharp-tests/obj/Debug/netcoreapp2.1/did-security-csharp-tests.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("did-security-csharp-tests")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("did-security-csharp-tests")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("did-security-csharp-tests")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /did-security-csharp/Tests/did-security-csharp-tests/obj/Debug/netcoreapp2.1/did-security-csharp-tests.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | fa59cd7087ddf1d46c6b42ff152c5f4d15981f80 2 | -------------------------------------------------------------------------------- /did-security-csharp/Tests/did-security-csharp-tests/obj/Debug/netcoreapp2.1/did-security-csharp-tests.Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/decentralized-identity/did-security-csharp/81522bf04c32331cc6153795b8b3cac54e80dadf/did-security-csharp/Tests/did-security-csharp-tests/obj/Debug/netcoreapp2.1/did-security-csharp-tests.Program.cs -------------------------------------------------------------------------------- /did-security-csharp/Tests/did-security-csharp-tests/obj/Debug/netcoreapp2.1/did-security-csharp-tests.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/decentralized-identity/did-security-csharp/81522bf04c32331cc6153795b8b3cac54e80dadf/did-security-csharp/Tests/did-security-csharp-tests/obj/Debug/netcoreapp2.1/did-security-csharp-tests.assets.cache -------------------------------------------------------------------------------- /did-security-csharp/Tests/did-security-csharp-tests/obj/Debug/netcoreapp2.1/did-security-csharp-tests.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/decentralized-identity/did-security-csharp/81522bf04c32331cc6153795b8b3cac54e80dadf/did-security-csharp/Tests/did-security-csharp-tests/obj/Debug/netcoreapp2.1/did-security-csharp-tests.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /did-security-csharp/Tests/did-security-csharp-tests/obj/did-security-csharp-tests.csproj.nuget.g.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | True 5 | NuGet 6 | $(MSBuildThisFileDirectory)project.assets.json 7 | $(UserProfile)\.nuget\packages\ 8 | C:\Users\ronnybj.EUROPE\.nuget\packages\ 9 | PackageReference 10 | 5.6.0 11 | 12 | 13 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | C:\Users\ronnybj.EUROPE\.nuget\packages\xunit.analyzers\0.10.0 24 | 25 | -------------------------------------------------------------------------------- /did-security-csharp/Tests/did-security-csharp-tests/obj/did-security-csharp-tests.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /did-security-csharp/did-security-csharp.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.0 5 | did_security_csharp 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /did-security-csharp/did-security-csharp.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | false 5 | 6 | -------------------------------------------------------------------------------- /did-security-csharp/obj/Debug/netstandard2.0/did-security-csharp.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("did-security-csharp")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("did-security-csharp")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("did-security-csharp")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /did-security-csharp/obj/Debug/netstandard2.0/did-security-csharp.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 3df73f1abc69d47ce5a189616327b5bc6e032bb9 2 | -------------------------------------------------------------------------------- /did-security-csharp/obj/Debug/netstandard2.0/did-security-csharp.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/decentralized-identity/did-security-csharp/81522bf04c32331cc6153795b8b3cac54e80dadf/did-security-csharp/obj/Debug/netstandard2.0/did-security-csharp.assets.cache -------------------------------------------------------------------------------- /did-security-csharp/obj/Debug/netstandard2.0/did-security-csharp.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/decentralized-identity/did-security-csharp/81522bf04c32331cc6153795b8b3cac54e80dadf/did-security-csharp/obj/Debug/netstandard2.0/did-security-csharp.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /did-security-csharp/obj/did-security-csharp.csproj.nuget.g.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | True 5 | NuGet 6 | $(MSBuildThisFileDirectory)project.assets.json 7 | $(UserProfile)\.nuget\packages\ 8 | C:\Users\ronnybj.EUROPE\.nuget\packages\ 9 | PackageReference 10 | 5.6.0 11 | 12 | 13 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 14 | 15 | 16 | 17 | 18 | 19 | C:\Users\ronnybj.EUROPE\.nuget\packages\xunit.analyzers\0.10.0 20 | 21 | -------------------------------------------------------------------------------- /did-security-csharp/obj/did-security-csharp.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath) 5 | 6 | 7 | 8 | 9 | 10 | --------------------------------------------------------------------------------