@olsitec/olsicrypto (2.0.1)
Published 2026-07-01 10:02:36 +00:00 by platform-admin
Installation
@olsitec:registry=npm install @olsitec/olsicrypto@2.0.1"@olsitec/olsicrypto": "2.0.1"About this package
olsicrypto
To access this library you need a GitLab access token and expose it as an environment variable GITLAB_TOKEN.
Bun
bunfig.toml
[install.scopes]
olsitec = { token = "$GITLAB_TOKEN", url = "https://gitlab.com/api/v4/projects/51239180/packages/npm/" }
Install
bun install @olsitec/olsicrypto
NPM
.npmrc
echo "@olsitec:registry=https://gitlab.com/api/v4/projects/51239180/packages/npm/" > ~/.npmrc
echo "//gitlab.com/api/v4/projects/51239180/packages/npm/:_authToken=$GITLAB_TOKEN" >> ~/.npmrc
Install
npm install @olsitec/olsicrypto
Usage
import { generateScryptString, verifyScryptString } from '@olsitec/olsicrypto';
let password = 'testsecurepassword';
let scryptString = generateScryptString(password);
console.log(`scryptString`, scryptString);
const returnValue = verifyScryptString(password, scryptString);
console.log(`verifyScryptString`, returnValue);
Dependencies
Dependencies
| ID | Version |
|---|---|
| scrypt-js | ^3.0.1 |
Development dependencies
| ID | Version |
|---|---|
| @eslint/js | ^9.27.0 |
| @types/node | ^20.10.4 |
| bun-types | latest |
| eslint | ^9.27.0 |
| eslint-config-prettier | ^10.1.5 |
| globals | ^17.6.0 |
| typescript | ^5.3.3 |
Peer dependencies
| ID | Version |
|---|---|
| typescript | ^5.3.3 |