---
title: "Discussion on \"A self-describing ciphertext in 40 lines of WebCrypto: PBKDF2-SHA256 at 10^6 iterations, AES-256-GCM and a versioned base64url envelope\" | Hashnode"
description: "Discussion on \"A self-describing ciphertext in 40 lines of WebCrypto: PBKDF2-SHA256 at 10^6 iterations, AES-256-GCM and a versioned base64url envelope\". How our \"encrypt text with a password\" tool packs iterations, salt, IV and the GCM tag into one pasteable line, and what we'd change if WebCrypto had Argon2."
url: "https://hashnode.com/posts/a-self-describing-ciphertext-in-40-lines-of-webcrypto-pbkdf2-sha256-at-10-6-iterations-aes-256-gcm-and-a-versioned-base64url-envelope/6af9779d8d72970b0731dc0d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A self-describing ciphertext in 40 lines of WebCrypto: PBKDF2-SHA256 at 10^6 iterations, AES-256-GCM and a versioned base64url envelope](https://404vpn.hashnode.dev/a-self-describing-ciphertext-in-40-lines-of-webcrypto-pbkdf2-sha256-at-10-6-iterations-aes-256-gcm-and-a-versioned-base64url-envelope?utm_source=hashnode&utm_medium=feed)

How our "encrypt text with a password" tool packs iterations, salt, IV and the GCM tag into one pasteable line, and what we'd change if WebCrypto had Argon2.

2d ago · 4 min read · 404vpn.hashnode.dev  
Read the article

-   [#security](https://hashnode.com/tag/security)
-   [#privacy](https://hashnode.com/tag/privacy)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#cryptography](https://hashnode.com/tag/cryptography)

## Written by

[404teamvpn](https://hashnode.com/@404vpn)

@404vpn · Amsterdam, Netherlands

  
[View profile](https://hashnode.com/@404vpn)

Team behind 404vpn.io. We make free browser privacy tools and try to explain privacy without the hype. Happy to answer questions.

Team behind 404vpn.io. We build free browser-based privacy tools: QR reader, link cleaner, subnet calculator, privacy checker. We write about networking, VPN protocols and online privacy without the hype, including what a VPN can't do.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
