xss.EncryptionHandler 4.2.0

Add method overload key connection

There is a newer version of this package available.
See the version list below for details.
Install-Package xss.EncryptionHandler -Version 4.2.0
dotnet add package xss.EncryptionHandler --version 4.2.0
<PackageReference Include="xss.EncryptionHandler" Version="4.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add xss.EncryptionHandler --version 4.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: xss.EncryptionHandler, 4.2.0"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

Release Notes

Version 4.2.0
       a.  I added the GenerateTokenJwt method overload

Version 4.1.1
       a. Add method GetClaimsFromAccessToken

Version 4.1.0
       a. Add parameter JWT Refresh Expiration Min
       b. Add method refresh token
       c. Add method revoke token


Version 4.+-
       a. Add Encrypt JWT

     Version 3.+-
       a. Add Encrypt RSA

     Version 2.+-
       a. does not contain try catch. make sure to surround this method with try catch statement when used.
       b. it keeps the encryption keys in cache for 60 minutes, to avoid several calls to the database
       c. Add Encrypt Hash Sha256

     General-
     Set the parameters for your application.

Need these store procedure in your client app.

Add method:
getParameters
setParameters

/*=============================================   
-- Author:  Bbautista  
-- Create Date: 2019-02-21   
-- Dependencies:    
-- Description:    
-- Notes:    
-- [Redmine Ticket: ?] - Update Encryption Nuget  
-- Modification:    
-- [Redmine Ticket 52670] AOtiniano 2020-20-11 ADD [ENCRYPTION_RSAPUBLICKEY] and  [ENCRYPTION_RSAPRIVATEKEY] columns      
-- [Redmine Ticket: ?]  
-- =============================================   
*/

Alter Procedure [dbo].[Encryption_GetSettings_Sp]
As
Begin
   Set NoCount On;
   Set Transaction Isolation Level Read UnCommitted;
   Select Top 1
   [S].[Encryption_passPhrase]
 , [S].[Encryption_SaltValue]
 , [S].[Encryption_InitVector]
 , [S].[ENCRYPTION_RSAPUBLICKEY]
 , [S].[ENCRYPTION_RSAPRIVATEKEY]
   From [tbl_Settings] As [S];
End;

Please, make sure.

Supported Methods:
-Encrypt
-Decrypt

Example Code:
Encryption.Encrypt("x")
Encryption.Decrypt("x")

NuGet packages (125)

Showing the top 5 NuGet packages that depend on xss.EncryptionHandler:

Package Downloads
xss.ProductEntryBackEnd
Admin product and categories
xss.EmailTemplateBackEnd
Generation new version with changes in updated nugets
xss.RolesBackend
This nuget is for Backend for User, roles, navsettings, reports_roles and controls management
xss.DistributorBackEnd
Package Description
xss.PromoCodes
Package Description

Version History

Version Downloads Last updated
4.2.1 47 9/22/2022
4.2.0 102 4/27/2022
4.1.1 11 4/21/2022
4.1.0 110 1/6/2022
4.0.0 194 3/23/2021
3.0.0 280 11/20/2020
2.0.2 220 8/4/2020
2.0.1 114 6/12/2020
2.0.0 11 6/12/2020
1.0.9 159 4/2/2020
1.0.8.5 150 11/29/2019