![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@hapiness/crypto
Advanced tools
Crypto module provides some functions for security features like AES key, Key pair, RSA key, PKCS12, Certificate, PEM and more
Crypto
module for the Hapiness framework provides some functions for security features like AES key
, Key pair
, PKCS12
, RSA key
, Certificate
, JWT
and more.
We use existing node modules to provide these functions: NodeRSA, PEM, JWT and RandomString but we add Observable
feature for asynchronous and stream processes.
All most important crypto features in only one module.
yarn
or npm
it in your package.json
$ npm install --save @hapiness/core @hapiness/crypto rxjs
or
$ yarn add @hapiness/core @hapiness/crypto rxjs
"dependencies": {
"@hapiness/core": "^1.3.0",
"@hapiness/crypto": "^1.0.0",
"rxjs": "^5.5.5",
//...
}
//...
CryptoModule
import { HapinessModule } from '@hapiness/core';
import { CryptoModule } from '@hapiness/crypto';
@HapinessModule({
version: '1.0.0',
declarations: [
LibWithCrypto
],
imports: [
CryptoModule
]
})
class HapinessModuleNeedsCryptoModule {}
You can use AESService
, HashService
, PEMService
, RandomstringService
, JWTService
and RSAService
anywhere in your module with dependency injection.
import { Lib } from '@hapiness/core';
import { RSAService, NodeRSA } from '@hapiness/crypto';
@Lib()
class LibWithCrypto {
constructor(private _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
.cipher.final()
in AESService.encryptWithAesKey()
and AESService.decryptWithAesKey()
operatorsCryptoModule
with AESService
, HashService
, PEMService
, RandomstringService
and RSAService
Observable's
operators for AESService
and RSAService
features.Lettable operators
for AESService
and RSAService
features.Julien Fauville | Antoine Gomez | Sébastien Ritz | Nicolas Jessel |
Copyright (c) 2017 Hapiness Licensed under the MIT license.
FAQs
Crypto module provides some functions for security features like AES key, Key pair, RSA key, PKCS12, Certificate, PEM and more
We found that @hapiness/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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.