# macOS Cryptography Objective-C Samples

macOS Objective-C cryptography examples including hash calculation, symmetric encryption, and Base64 encoding

> Canonical page: https://elysiatools.com/en/samples/macos-cryptography-objectivec

- **Category:** Objective-C

- **Keywords:** objectivec, macos, cryptography, security, encryption, hashing, base64, commoncrypto

## Overview

macOS Objective-C cryptography examples including hash calculation, symmetric encryption, and Base64 encoding

## Examples

- **Hash Calculation**: Calculate MD5 and SHA256 hashes of strings and data using CommonCrypto
- **Symmetric Encryption**: AES encryption and decryption using CommonCrypto with CBC mode and PKCS7 padding
- **Base64 Encoding**: Encode and decode data to/from Base64 format using Foundation APIs

## When to use

- Use this sample set when you want reference inputs for macOS Cryptography Objective-C 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 macOS Cryptography Objective-C Samples?

This page includes curated sample entries, related tools, and neighboring sample collections for macOS Cryptography Objective-C Samples.

## Related tools

- [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.
- [Text Encryptor/Decryptor](https://elysiatools.com/en/tools/text-encryptor-decryptor): Simple text encryption and decryption using various algorithms
- [AES Encryption Tool](https://elysiatools.com/en/tools/aes-encryption-tool): Encrypt or decrypt text and files with AES-256-GCM and export IV-based bundles
- [Hash Generator](https://elysiatools.com/en/tools/hash-generator): Generate hash values (MD5, SHA1, SHA256, SHA512)
- [RSA Encrypt / Decrypt](https://elysiatools.com/en/tools/rsa-encrypt-decrypt): Encrypt text with an RSA public key or decrypt ciphertext with the matching private key, using OAEP padding (SHA-1 or SHA-256). Handles long messages by chunking. Keys and data stay local. PKCS#1 v1.5 is intentionally not offered (Node disables it for decryption due to Bleichenbacher attacks).
- [Secure Random Generator](https://elysiatools.com/en/tools/secure-random-generator): Generate cryptographically secure random key material driven by entropy budget — request N bits of entropy, get hex/base64/base64url output. Also supports custom-alphabet strings via crypto.randomInt (rejection-sampled, no modulo bias). Use this instead of Math.random()-based tools for any secret/key/token.
- [Bcrypt Generator](https://elysiatools.com/en/tools/bcrypt-generator): Generate bcrypt hash from password
- [BFV, CKKS, LWE FHE Ciphertext Noise Budget, Relin and Bootstrapping Explainer](https://elysiatools.com/en/tools/bfv-ckks-lwe-fhe-ciphertext-noise-budget-relin-and-bootstrapping-explainer): Run a real miniature BFV/CKKS pipeline over Z_q\[x\]/(xⁿ+1): exact invariant-noise budgets in bits, ciphertext multiplication with relinearization, modulus switching, SIMD slot packing and a bootstrapping refresh.

## Related content

- [macOS String Processing Objective-C Samples](https://elysiatools.com/en/samples/macos-string-processing-objectivec): macOS Objective-C string processing examples including NSString, NSMutableString, searching, regex, and encoding
- [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
- [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
- [Windows Cryptography C++ Samples](https://elysiatools.com/en/samples/windows-cryptography-cpp): Windows C++ cryptography examples including hash calculation, AES encryption/decryption, and Base64 encoding/decoding
- [macOS File Operations Objective-C Samples](https://elysiatools.com/en/samples/macos-file-operations-objectivec): macOS Objective-C file operations examples including text file read/write, file copy/move, directory traversal, and file validation
