# Android 17 Beta 2 introduces native Post-Quantum Cryptography (PQC) in the Keystore via ML-DSA

**Date:** 2026-05-01  
**Tags:** Android, Security, Cryptography, PQC  
**URL:** https://kelexine.is-a.dev/til/android-17-pqc-keystore

---

TIL: Android 17 Beta 2 introduces native Post-Quantum Cryptography (PQC) in the Keystore via ML-DSA. It isolates these heavy crypto operations in the TEE, protecting keys from future quantum computer attacks. Implementing this for an encrypted storage app today—security at depth.


```kotlin
// Android 17 PQC Key Generation
val keyGen = KeyPairGenerator.getInstance(
    KeyProperties.KEY_ALGORITHM_ML_DSA,
    "AndroidKeyStore"
)
keyGen.initialize(KeyGenParameterSpec.Builder(
    "pqc_key", 
    KeyProperties.PURPOSE_SIGN
).build())
```



**Related:** [https://android-developers.googleblog.com/](https://android-developers.googleblog.com/)


---

*This content is available at [kelexine.is-a.dev/til/android-17-pqc-keystore](https://kelexine.is-a.dev/til/android-17-pqc-keystore)*
