Skip to content

cdcd72/DataProtectionCrypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataProtectionCrypto

A CLI that crypto your data with data protection. ( Windows )

Usage

Encrypt

  1. Encrypt your data with service name.

    .\DataProtectionCrypto.exe encrypt -dt "data" -sn "serviceName"
  2. Get encrypted data.

    CfDJ8KiFdkktLYZLhhnnejE-siWiMI7uvqroHcK2y7QPHbMN-Zy06xqNOYYQP8CGANCilSeSAWoDNeAcplglCFIyBJnSyhYul5kHXmB7s7G33WtcXVX7FO0rrwWwyj8kV7OSEg
  3. Your can typing .\DataProtectionCrypto.exe encrypt help see more options.

    Usage: encrypt [options...]
    
    Encrypt with data protection.
    
    Options:
      -dt, --data <String>           Data. (Required)
      -sn, --svc-name <String>       Service name. (Required)
      -an, --app-name <String>       Application name. (Default: APP)
      -kp, --key-path <String>       Key path. (Default: C:\keys)
      -kt, --key-lifetime <Int32>    Key lifetime. (Default: 90)

Decrypt

  1. Decrypt your data with service name.

    .\DataProtectionCrypto.exe decrypt -pdt "CfDJ8KiFdkktLYZLhhnnejE-siWiMI7uvqroHcK2y7QPHbMN-Zy06xqNOYYQP8CGANCilSeSAWoDNeAcplglCFIyBJnSyhYul5kHXmB7s7G33WtcXVX7FO0rrwWwyj8kV7OSEg" -sn "serviceName"
  2. Get decrypted data.

    data
  3. Your can typing .\DataProtectionCrypto.exe decrypt help see more options.

    Usage: decrypt [options...]
    
    Decrypt with data protection.
    
    Options:
      -pdt, --protected-data <String>    Protected data. (Required)
      -sn, --svc-name <String>           Service name. (Required)
      -an, --app-name <String>           Application name. (Default: APP)
      -kp, --key-path <String>           Key path. (Default: C:\keys)

Other reference