# Web Cryptography TypeScript Samples

Web TypeScript cryptography examples including hash calculation, symmetric encryption, and Base64 encoding

> Canonical page: https://elysiatools.com/en/samples/web-cryptography-typescript

- **Category:** TypeScript

- **Keywords:** typescript, web, cryptography, hash, encryption, base64, security

## Overview

Web TypeScript cryptography examples including hash calculation, symmetric encryption, and Base64 encoding

## Examples

- **Hash Calculation**: Calculate MD5, SHA-1, SHA-256, SHA-384, SHA-512 hash values using Web Crypto API
- **Symmetric Encryption**: Encrypt and decrypt data using AES-GCM algorithm with Web Crypto API
- **Base64 Encoding**: Encode and decode data to/from Base64 format with support for Unicode and binary data

## When to use

- Use this sample set when you want reference inputs for Web Cryptography TypeScript Samples.
- Use it to preview output formats and compare related sample variants.

## How it works

- Open a sample entry to inspect the prepared example payload or asset.
- Compare it with related tools to understand how the workflow connects.

## Use cases

- Hash Calculation
- Symmetric Encryption
- Base64 Encoding

## Frequently asked questions

### What is included in Web Cryptography TypeScript Samples?

This page includes curated sample entries, related tools, and neighboring sample collections for Web Cryptography TypeScript Samples.

## Related tools

- [JSON to TypeScript Converter](https://elysiatools.com/en/tools/json-to-typescript): Convert JSON data into TypeScript interfaces or type aliases with union types, optional fields, and nested object inference
- [OpenAPI to TypeScript Generator](https://elysiatools.com/en/tools/openapi-to-typescript-generator): Convert OpenAPI or Swagger JSON/YAML specs into TypeScript API types, request payloads, and response models with configurable output and naming styles
- [Chrome Web Store Screenshots Resized](https://elysiatools.com/en/tools/chrome-web-store-screenshots-resized): Resize images to Chrome Web Store screenshot dimensions while preserving full content and aspect ratio for extension and app listings
- [Web Search (SearXNG JSON)](https://elysiatools.com/en/tools/web-search): Search the web through the s.stdlang.com SearXNG instance and return its JSON response for automation or downstream tools.
- [Web Font Pairing Lab](https://elysiatools.com/en/tools/webfont-pairing-lab): Preview a heading + body Google Fonts pairing with weight and line-height controls, and copy a ready-to-paste CSS @import + variables snippet. Curated 22-face registry plus 7 proven pairing presets.
- [Bcrypt Generator](https://elysiatools.com/en/tools/bcrypt-generator): Generate bcrypt hash from password
- [Hash Algorithm Comparator](https://elysiatools.com/en/tools/hash-algorithm-comparator): Hash the same input with MD5, SHA-1, SHA-256, SHA-512, BLAKE2b, and BLAKE3 at the same time and compare them side by side: output length, hex/Base64 digest, security status (broken / modern), and a relative speed benchmark. Great for teaching, choosing a hashing algorithm, or sanity-checking checksums.
- [PBKDF2 Generator](https://elysiatools.com/en/tools/pbkdf2-generator): Generate PBKDF2 key derivation hash

## Related content

- [Android Cryptography Java Samples](https://elysiatools.com/en/samples/android-cryptography-java): Android Java cryptography examples including hash calculation, AES encryption/decryption, and Base64 encoding
- [Android Cryptography Kotlin Samples](https://elysiatools.com/en/samples/android-cryptography-kotlin): Android Kotlin cryptography examples including hash calculation, AES encryption/decryption, and Base64 encoding
- [Cryptography and Encryption Samples](https://elysiatools.com/en/samples/cryptography): Comprehensive cryptography examples including symmetric encryption, asymmetric encryption, hash functions, digital signatures, and key exchange protocols
- [macOS Cryptography Objective-C Samples](https://elysiatools.com/en/samples/macos-cryptography-objectivec): macOS Objective-C cryptography examples including hash calculation, symmetric encryption, and Base64 encoding
- [Web Cryptography Go Samples](https://elysiatools.com/en/samples/web-cryptography-go): Web Go cryptography and security examples including hash calculation, symmetric encryption, and Base64 encoding/decoding
- [Web Cryptography Python Samples](https://elysiatools.com/en/samples/web-cryptography-python): Web Python cryptography and security examples including hash computation, symmetric encryption, and Base64 encoding
