
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Secure Lightweight Encryption & Authentication Library for Node.js, Browsers and Arduino.
Node.js, 브라우저, Arduino를 위한 안전하고 가벼운 암호화 및 인증 라이브러리
Boho는 강력한 암호화, 인증 및 보안 통신을 위한 경량 JavaScript 라이브러리입니다. Node.js, 브라우저, 그리고 Arduino와 같은 임베디드 시스템을 위해 설계되었으며, 최소한의 오버헤드로 강력한 보안이 필요한 IoT, 임베디드 및 웹 애플리케이션에 이상적입니다.
boho는 보호를 의미합니다.encryptPack, decryptPack: 범용 암호화/복호화encrypt_488, decrypt_488: 인증 후 보안 통신encrypt_e2e, decrypt_e2e: 종단간 암호화RAND(size): 안전한 랜덤 버퍼 생성sha256.hash, sha256.hex, sha256.base64, sha256.hmac: 해싱 유틸리티boho 라이브러리의 서버-클라이언트 인증(AUTH) 프로세스는 다음과 같은 단계로 이루어집니다.
SERVER_TIME_NONCE 메시지를 클라이언트에 보냅니다.BohoMsg.SERVER_TIME_NONCEAUTH_REQ 메시지로 서버에 전송합니다.BohoMsg.AUTH_REQAUTH_RES 메시지로 클라이언트에 응답합니다.AUTH_FAIL 메시지를 보낼 수 있습니다.AUTH_RES 메시지에 포함된 HMAC이 올바른지 검증합니다.isAuthorized = true 상태가 되어 이후 암호화 통신이 가능합니다.sequenceDiagram
participant Client
participant Server
Server->>Client: SERVER_TIME_NONCE (unixTime, milTime, nonce)
Client->>Server: AUTH_REQ (id8, clientNonce, hmac32)
Server->>Client: AUTH_RES (hmac32) / AUTH_FAIL
Client->>Client: AUTH_RES verification
boho의 인증 프로토콜은 서버와 클라이언트가 nonce와 시각 정보를 교환하고, HMAC을 통해 상호 인증하는 구조입니다. 이 과정을 통해 안전하게 세션을 설정하고, 이후 암호화된 데이터 통신이 가능합니다.
import Boho from 'boho'
let boho = new Boho()
boho.set_key('abc' )
let data = 'aaaaaaaa'
let encData = boho.encryptPack( data )
console.log('encData buffer:', encData )
let result = boho.decryptPack( encData )
if(result){
console.log('result object:', result )
printMessage(result.data) // decode to string.
}else{
console.log('decryption is fail')
}
function printMessage(data){
let dataStr = new TextDecoder().decode( data )
console.log('
result string:',dataStr)
}
IOSignal을 참고하세요.iosignal (GitHub)Boho는 완전한 TypeScript 타입 정의를 제공합니다. 간단히 설치하고 가져오기만 하면 TypeScript 프로젝트에서 자동 완성 및 타입 검사를 받을 수 있습니다.
MIT
FAQs
Secure Lightweight Encryption & Authentication Library for Node.js, Browsers and Arduino.
The npm package boho receives a total of 54 weekly downloads. As such, boho popularity was classified as not popular.
We found that boho 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.