Skip to content
Astra
ProductDocumentationDownloadPricingCommunity
Sign inGet Astra

Explore Astra

Explore Astra

HomeProductPricingDocumentationDownloadRelease notesSystem status
Sign inDiscord
Roblox
IntroductionQuick start
Keys & licensingYour workspaceTroubleshooting
API reference
Closures
Debug
Environment
Metatables
Scheduler
Instances
Cache
Scripts
Signals
Filesystem
Input
Console
Cryptography
JSON
Regex
System
Scene files
Drawing
UI library
Renderer
Requests
Network
API reference

Cryptography

Encode, compress, hash and encrypt data.

Available functions

base64decodeDecodes Base64 data.base64encodeEncodes binary data as Base64.crypt.decryptDecrypts AES-CBC data.crypt.encryptEncrypts data with AES-CBC.crypt.generatebytesGenerates Base64-encoded random bytes.crypt.generatekeyGenerates a random AES key.crypt.hashComputes a hash digest.crypt.hmacComputes a keyed message digest.crypt.randomGenerates random bytes.lz4compressCompresses data as a raw LZ4 block.lz4decompressDecompresses a raw LZ4 block.
PreviousrwarnConsoleNextbase64decodeCryptography

On this page

Available functions
Astra

A complete Luau workspace.
Your editor, scripts, and accounts in one place.

Get Astra

WindowsmacOSFree keyPricingRedeemDashboard

Product

EditorScript HubAccountsFeaturesComparison

Community

DiscordSystem statusSupport

Learn

DocumentationRelease notes

Developers

API referenceLuau LSPBenchmarks

Legal

TermsPrivacyCookiesRefund policy
System statusSupportTermsPrivacyCookies

© 2026 Astra. All rights reserved.