0.7.0 • Published 3 months ago

@getanthill/sec v0.7.0

Weekly downloads
47
License
MIT
Repository
gitlab
Last release
3 months ago

getanthill Security Layer

pipeline Quality Gate Status

Coverage Vulnerabilities Security Rating

Getting Started

First, you need install the package:

npm install -S @getanthill/sec

Then, your client can follow the steps to register or signin a user to your app, then activate MFA validation.

// 1. Signin part:
const tokens = auth.getTokens(email, password);

// 2. MFA Setup part: (only on registration)
// Master key generation #keep-it-secret-keep-it-safe
const masterKey = otp.generateMasterKey();
// Secret key generation from Master key
const secretKey = otp.generateSecretFromMaster(masterKey);

// Validate MFA:
const isValid = otp.verify('123456', secretKey);

// Create the store:
const store = new Store(tokens.encryption, secretKey);

// Manage your data as always:
store.data = { hello: 'world' }; // Always encrypted data

Roadmap

0.7.0

3 months ago

0.6.0

4 months ago

0.5.0

1 year ago

0.4.0

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.2

3 years ago

0.1.0

3 years ago