DataProtectionCrypto is a command-line interface tool for encrypting and decrypting data using data protection mechanisms on Windows.
Crypto with data protection. ( Windows )
This tool is designed for developers and system administrators who need to securely encrypt and decrypt sensitive data in their applications. It leverages ASP.NET Core's data protection features to ensure that data remains confidential and is only accessible by authorized services.
Ensure that the key path exists and is accessible for storing encryption keys. Default key path is C:\keys.
.\DataProtectionCrypto.exe encrypt -dt "data" -sn "serviceName"
Encrypts the specified data using the provided service name.
.\DataProtectionCrypto.exe decrypt -pdt "<protected_data>" -sn "serviceName"
Decrypts the protected data using the specified service name.
.\DataProtectionCrypto.exe encrypt help
Displays help options for the encrypt command.
.\DataProtectionCrypto.exe decrypt help
Displays help options for the decrypt command.