Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #614 from keiji/refactor/registerapi_cryption
Browse files Browse the repository at this point in the history
[Server] RegisterApiのリファクタリング(ICryptionServiceの削除)
  • Loading branch information
kazuhiro4949 authored Jan 12, 2022
2 parents 4f41453 + 969d686 commit 7d696a5
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 435 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */

using Microsoft.Extensions.Configuration;
using System;

namespace Covid19Radar.Api
{
Expand All @@ -22,11 +21,6 @@ public static bool AzureFrontDoorRestrictionEnabled(this IConfiguration config)
public static string CosmosDatabaseId(this IConfiguration config) => config["COSMOS_DATABASE_ID"];
public static bool CosmosAutoGenerate(this IConfiguration config) => bool.Parse(config["COSMOS_AUTO_GENERATE"]);

public static byte[] CryptionKey(this IConfiguration config) => Convert.FromBase64String(config["CRYPTION_KEY"]);
public static byte[] CryptionIV(this IConfiguration config) => Convert.FromBase64String(config["CRYPTION_IV"]);
public static string CryptionHash(this IConfiguration config) => config["CRYPTION_HASH"];
public static byte[] CryptionKey2(this IConfiguration config) => Convert.FromBase64String(config["CRYPTION_KEY2"]);
public static byte[] CryptionIV2(this IConfiguration config) => Convert.FromBase64String(config["CRYPTION_IV2"]);
public static string InquiryLogApiKey(this IConfiguration config) => config["InquiryLogApiKey"];

}
Expand Down
149 changes: 0 additions & 149 deletions src/Covid19Radar.Api.Common/Services/CryptionService.cs

This file was deleted.

14 changes: 0 additions & 14 deletions src/Covid19Radar.Api.Common/Services/ICryptionService.cs

This file was deleted.

Loading

0 comments on commit 7d696a5

Please sign in to comment.