LoginSignup
0
0

More than 5 years have passed since last update.

DPAIの試用ツールとしてのStreamRelay.NET.exe

Posted at

Windowsによるデータ保護API(DPAPI=Data Protection API)の試用ができる

.NET Frameworkでは、DPAPIを気軽に使用することができる。
System.Security.Cryptography.ProtectedDataクラスとSystem.Security.Cryptography.ProtectedMemoryクラスである

DPAIの試用ツールとしてのStreamRelay.NET.exe

こんな感じ

StreamRelay.NET.exe -LocalPort 0 -LocalInputFile a.txt -RemotePort 0 -RemoteProxy netstream:///?DPAPI^&DPAPIEntropyHex=01020304050607^&DPAPIScope=DataProtection=CurrentUser -Verbose

オプション

  • DPAPIEntropy[Hex]=<<(Hex)value>> ← 暗号の際のIVみたいなものだと思う
  • DPAPIScope="オプション(既定はCurrentUser)"
    • CurrentUser
    • LocalMachine
    • CrossProcess
    • SameLogon
    • SameProcess

DataProtection

System.Security.Cryptography.DataProtectionScopeにそれぞれ対応

  • CurrentUser
  • LocalMachine

MemoryProtection

System.Security.Cryptography.MemoryProtectionScope
にそれぞれ対応

  • CrossProcess
  • SameLogon
  • SameProcess

目次へ戻る

目次というか最初の一歩

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0