
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@0to10/profiles
Advanced tools
This repository provides structures to work with encrypted profiles.
Get started quickly by following the instructions below.
Use NPM to install this library into your project:
npm install --save @0to10/profiles
All configuration must be done before using any other structures provided by this package, or risk ending with an unstable state and/or corrupted data.
Configure the available cryptography parameters. Example below:
import {CryptoVersions} from '@0to10/profiles';
CryptoVersions.configure([
{
number: 1,
algorithm: {
name: 'AES-CTR',
iv_length: 64,
},
},
]);
Below is an example of how to create a new profile, using the ProfileFactory
class
and adding some data to it.
The Profile
instance created by the ProfileFactory
is a roaming profile, meaning
that it is unencrypted and mutable. A roaming profile may only be used locally on an
authorised device, and must never leave that device in its unencrypted form.
'use strict';
import {ProfileFactory, RoamingProfile} from '@0to10/profiles';
const factory: ProfileFactory = new ProfileFactory();
const profile: RoamingProfile = factory.create();
profile.data.set('sensitive_information', 'I am using a Qwerty keyboard.');
Any required authentication information should be stored outside the profile, as this information is not accessible until the profile is decrypted.
Before transporting the profile, it must be encrypted. Classes that transport or store a profile instance must refuse storing any unsealed profiles.
'use strict';
import {EncryptedProfile, Profile, ProfileFactory} from '@0to10/profiles';
const factory: ProfileFactory = new ProfileFactory();
const profile = factory.create();
// Modify the profile
const encryptedProfile: EncryptedProfile = profile.encrypt(
await profile.deriveMasterKey('MyS3cretPassw0rd!')
);
// Store the profile
FAQs
Typescript library for working with encrypted profiles
We found that @0to10/profiles demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.