SFSecurity 1.0.0

This library having feature to encrypt and decrypt string data with the help of key.
Data is logically encrypted and can be decrypted with the same key it  was encrypted.

Install-Package SFSecurity -Version 1.0.0
dotnet add package SFSecurity --version 1.0.0
<PackageReference Include="SFSecurity" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SFSecurity --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SFSecurity, 1.0.0"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

This library is used for encryption and decryption purpose features are given below.

  1. string data is encrypted with key string
  2. to decrypt encrypted string the same key string is required by which it was encrypted
  3. encrypted data is always unique for the same data and key means if we encrypt "RAM" twice or more with key "X" then output will be always unique
  4. string is logically encrypted and return new value every time let it be the same key and value
  5. Length of encrypted value can be increased

To Encrypt string write SFSecurity.DataProtection.Protect("key","value");
this method will return decrypted string.

To Decrypt string write SFSecurity.DataProtection.Unprotect("key","decrypted data");
this method will return the original value if output is "ERROR" means value and key are not matched .

To increase or decrease the length of encrypted value change the value of SFSecurity.DataProtection.Length

Note: the default value of SFSecurity.DataProtection.Length is 10

This library is used for encryption and decryption purpose features are given below.

  1. string data is encrypted with key string
  2. to decrypt encrypted string the same key string is required by which it was encrypted
  3. encrypted data is always unique for the same data and key means if we encrypt "RAM" twice or more with key "X" then output will be always unique
  4. string is logically encrypted and return new value every time let it be the same key and value
  5. Length of encrypted value can be increased

To Encrypt string write SFSecurity.DataProtection.Protect("key","value");
this method will return decrypted string.

To Decrypt string write SFSecurity.DataProtection.Unprotect("key","decrypted data");
this method will return the original value if output is "ERROR" means value and key are not matched .

To increase or decrease the length of encrypted value change the value of SFSecurity.DataProtection.Length

Note: the default value of SFSecurity.DataProtection.Length is 10

Release Notes

To Encrypt string write SFSecurity.DataProtection.Protect("key","value");
this method will return decrypted  string.
To Decrypt string write SFSecurity.DataProtection.Unprotect("key","decrypted  data");
this method will return the orignal value which is "value"
if the key is wrong for the provided value it will return "ERROR"

Note : Method SFSecurity.DataProtection.Protect("key","value") will always return a uniqu string for same key and value pair

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 1,987 11/17/2019