A CLI that crypto your data with data protection. ( Windows )
-
Encrypt your data with service name.
.\DataProtectionCrypto.exe encrypt -dt "data" -sn "serviceName"
-
Get encrypted data.
CfDJ8KiFdkktLYZLhhnnejE-siWiMI7uvqroHcK2y7QPHbMN-Zy06xqNOYYQP8CGANCilSeSAWoDNeAcplglCFIyBJnSyhYul5kHXmB7s7G33WtcXVX7FO0rrwWwyj8kV7OSEg
-
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 your data with service name.
.\DataProtectionCrypto.exe decrypt -pdt "CfDJ8KiFdkktLYZLhhnnejE-siWiMI7uvqroHcK2y7QPHbMN-Zy06xqNOYYQP8CGANCilSeSAWoDNeAcplglCFIyBJnSyhYul5kHXmB7s7G33WtcXVX7FO0rrwWwyj8kV7OSEg" -sn "serviceName"
-
Get decrypted data.
data
-
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)