0.0.50 • Published 2 years ago
@signuply/secret v0.0.50
@signuply/secret
import { createSecretClient } from '@signuply/secret';
import assert from 'assert';
const secretClient = createSecretClient({
encryptionKey: '<128BITS_KEY>',
});
// generate cryptographic secret
const secret = await secretClient.generate();
// encrypt with aes-256-cbc
const encrypted = secretClient.encrypt(secret);
const decrypted = secretClient.decrypt(encrypted);
assert.equal(secret, decrypted);
// generate cyptographic hash with hmac algorithm
const hash = secretClient.hash(secret);
0.0.43
2 years ago
0.0.44
2 years ago
0.0.45
2 years ago
0.0.46
2 years ago
0.0.47
2 years ago
0.0.50
2 years ago
0.0.48
2 years ago
0.0.49
2 years ago
0.0.41
2 years ago
0.0.42
2 years ago
0.0.40
2 years ago
0.0.34
2 years ago
0.0.35
2 years ago
0.0.36
2 years ago
0.0.37
2 years ago
0.0.38
2 years ago
0.0.39
2 years ago
0.0.33
2 years ago
0.0.32
2 years ago
0.0.31
2 years ago