
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
@voiceflow/encryption
Advanced tools
Voiceflow encryption library
yarn add @voiceflow/encryption
import crypto from 'crypto';
import { encryptAes256Gcm, decryptAes256Gcm } from '@voiceflow/encryption';
// create a key
const createAES256Key = () =>
new Promise<string>((resolve) => {
crypto.generateKey('aes', { length: 256 }, (err, key) => {
if (err) throw err;
resolve(key.export().toString('base64'));
});
});
const encryptionKey = await createAES256Key();
// Encrypt data
const plaintext = 'sensitive data';
const encrypted = encryptAes256Gcm(plaintext, encryptionKey);
// Decrypt data
const decrypted = decryptAes256Gcm(encrypted, encryptionKey);
console.log(decrypted); // 'sensitive data'
import { Module } from '@nestjs/common';
import { EncryptionModule } from '@voiceflow/encryption';
@Module({
imports: [
EncryptionModule.register({
encryptionKey: 'your-base64-encoded-key',
}),
],
})
export class AppModule {}
Or with async configuration:
import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { EncryptionModule } from '@voiceflow/encryption';
@Module({
imports: [
ConfigModule.forRoot(),
EncryptionModule.registerAsync({
imports: [ConfigModule],
inject: [ConfigService],
useFactory: (configService: ConfigService) => ({
encryptionKey: configService.get('ENCRYPTION_KEY'),
}),
}),
],
})
export class AppModule {}
Then inject and use the service:
import { Injectable } from '@nestjs/common';
import { EncryptionService } from '@voiceflow/encryption';
@Injectable()
export class YourService {
constructor(private readonly encryptionService: EncryptionService) {}
encryptSensitiveData(data: string) {
return this.encryptionService.encrypt(data);
}
decryptSensitiveData(encryptedData) {
return this.encryptionService.decrypt(encryptedData);
}
}
FAQs
Voiceflow encryption library
The npm package @voiceflow/encryption receives a total of 0 weekly downloads. As such, @voiceflow/encryption popularity was classified as not popular.
We found that @voiceflow/encryption demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 27 open source maintainers 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
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.