SShortSingh.
Back to feed

Developer builds encrypted key-value store that encodes data as DNA sequences on disk

0
·1 views

A developer has released mdc-lite, a ~348KB embeddable encrypted key-value store that converts stored data into DNA-style text sequences before writing to disk. Each value is first encrypted using XChaCha20-Poly1305 with a 256-bit key, then encoded into sequences of A, C, G, and T characters at 2 bits per base. The DNA encoding is purely a binary representation technique and carries no quantum computing implications, as the developer explicitly clarifies. File names on disk are stored as BLAKE3 hashes of the original key names, keeping logical keys hidden. Key material is never generated or stored by the library itself, with custody delegated to platform secure hardware such as iOS Secure Enclave or Android Keystore.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Analysis Finds BlackRock BUIDL's $3.6B Fund Has Low Direct Flash Loan Risk

A DeFi security research team published a flash loan attack vector analysis of BlackRock's BUIDL tokenized money market fund, which holds approximately $3.6 billion in total value locked on Ethereum. The report concluded that the core BUIDL smart contract carries low direct vulnerability to flash loan exploits, primarily because it does not rely on real-time price oracles or on-chain lending logic. However, researchers identified meaningful risks in third-party integrations, particularly if any external protocol uses DEX spot prices rather than NAV-based or Chainlink oracles to value BUIDL as collateral. Additional threat vectors include potential manipulation of redemption queues and vulnerabilities in bridge contracts used to deploy BUIDL across Layer 2 networks like Arbitrum and Optimism. The team recommended that protocols integrating BUIDL avoid DEX-based price feeds and that bridge implementations undergo rigorous auditing to minimize peripheral attack exposure.

0
ProgrammingDEV Community ·

How Docker Layer Caching Works: Intermediate Layers Explained for Engineers

When a Docker image is built using the 'docker build' command, Docker executes a four-step cycle for each Dockerfile instruction: creating a temporary container, running the instruction inside it, committing the changes as a new intermediate image layer, and then deleting the temporary container. Each line in a Dockerfile — from the base image pull to file copies — produces a distinct, stackable layer that contributes to the final tagged image. One of Docker's most powerful features is layer caching, where unchanged layers are reused from local cache during subsequent builds, making them near-instantaneous. However, if any instruction in the Dockerfile changes, Docker invalidates the cache for that layer and rebuilds all subsequent layers from scratch. Understanding this internal build lifecycle and caching mechanism is considered essential knowledge for engineers and DevOps professionals aiming to optimize build speed and efficiency.

0
ProgrammingDEV Community ·

How a Reading Habit Can Quietly Supercharge Your Software Dev Career

A frontend developer argues that cultivating a love for reading is one of the most underrated advantages in a software development career. Since developers spend the majority of their working hours reading and writing—documentation, code, tickets, and reports—strong reading comprehension directly influences job performance. The author draws on seven years of reading lengthy fantasy novels to illustrate how regular reading builds focus, attention, and the ability to absorb complex material. Beyond technical docs, reading fiction is credited with training imagination, which helps developers envision how new knowledge can be applied to solve unfamiliar problems. The rise of ebooks and online learning resources like MDN has made building a reading habit more accessible than ever, removing barriers such as physical storage and cost.

0
ProgrammingDEV Community ·

Developer Seeks Testers for Open-Source SharePoint Approvals SPFx Web Part

A developer has submitted a pull request to the PnP SharePoint Framework samples repository featuring a list-backed Requests and Approvals inbox web part. The sample is designed for small and medium business approval workflows and requires no additional workflow engine or external service dependencies. Built with React 17, Fluent UI v9, PnPjs v4, and SPFx 1.23.2, it supports approve and reject actions, comment validation on rejection, and accessible keyboard navigation. The developer currently lacks access to a SharePoint Online tenant and is seeking volunteers to validate end-to-end functionality, including list setup, request assignment, and UI behavior. Testers are asked to share anonymized screenshots to help complete the pull request documentation.