Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@akanass/nestjsx-crypto
Advanced tools
NestJS crypto module provides some functions for security features like AES key, Key pair, RSA key, PKCS12, Certificate, PEM and more
Crypto
module for NestJS framework provides some functions for security features like AES key
, Key pair
, PKCS12
, RSA key
, Certificate
, JWT
and more.
This module is a wrapper to use @akanass-rx-crypto library inside NestJS application
in an easy way.
All most important crypto features in only one module.
yarn
or npm
it in your package.json
$ npm install --save @akanass/nestjsx-crypto @nestjs/common rxjs reflect-metadata
or
$ yarn add @akanass/nestjsx-crypto @nestjs/common rxjs reflect-metadata
"dependencies": {
"@akanass/nestjsx-crypto": "^3.0.0",
"@nestjs/common": "^8.0.11",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.4.0"
//...
}
//...
CryptoModule
import { CryptoModule } from '@akanass/nestjsx-crypto';
import { Module } from '@nestjs/common';
import { NestJSServiceWithCrypto } from './crypto.service.ts';
@Module({
imports: [
CryptoModule
],
providers: [
NestJSServiceWithCrypto
]
})
export class NestJSModuleNeedsCryptoModule {}
You can use AesService
, HashService
, PemService
, RandomStringService
, JwtService
and RsaService
anywhere in your module with dependency injection.
import { RsaService, NodeRSA } from '@akanass/nestjsx-crypto';
import { Injectable } from '@nestjs/common';
@Injectable()
export class NestJSServiceWithCrypto {
constructor(private readonly _rsaService: RsaService) {}
createRsaKey(): void {
this._rsaService.createKey().subscribe(
(k: NodeRSA) => console.log(k), // Show NodeRSA instance in console
e => console.error(e) // Show error in console
);
}
}
We implemented some services and to see their details go to documentation folder:
To set up your development environment:
cd
to the main folder,npm or yarn install
,npm or yarn run test
.
./coverage/lcov-report/index.html
.nestjs
version 9.0.2
@akanass/rx-crypto
version 2.2.0
rxjs
version 7.4.0
nestjs
version 8.0.11
@akanass/rx-crypto
version 2.0.0
rxjs
version 7.1.0
tslint
CryptoModule
with AesService
, HashService
, JwtService
, PemService
, RandomStringService
and RsaService
Observable's
operators for AesService
and RsaService
features.Copyright (c) 2021 Nicolas Jessel Licensed under the MIT license.
FAQs
NestJS crypto module provides some functions for security features like AES key, Key pair, RSA key, PKCS12, Certificate, PEM and more
We found that @akanass/nestjsx-crypto demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.