Comprehensive guide for implementing field-level encryption with @cipherstash/stack. Every value is encrypted with its own unique key via ZeroKMS (backed by AWS KMS). Encryption happens client-side before data leaves the application.
The package includes a native FFI module (@cipherstash/protect-ffi). You must opt out of bundling it in tools like Webpack, esbuild, or Next.js (serverExternalPackages).
If config is omitted, the client reads CS environment variables automatically.
@cipherstash/stack을 사용하여 필드 수준 암호화를 구현합니다. 스키마 정의, 암호화/복호화 작업, 검색 가능한 암호화(동등, 자유 텍스트, 범위, JSON), 대량 작업, 모델 작업, LockContext를 사용한 ID 인식 암호화, 다중 테넌트 키 세트 및 전체 TypeScript 유형 시스템을 다룹니다. 프로젝트에 암호화를 추가하거나, 암호화된 스키마를 정의하거나, CipherStash Encryption API로 작업할 때 사용합니다. 출처: cipherstash/protectjs.