The PIN/password used to login into the regular OS do NOT work. I've seen many answers saying so (e.g. here or here), it is not true (at least for my version of Android). I tried with numerical PIN, password, or nothing (each time going back to factory reset), and nothing worked in TWRP.

Is Android encryption secure? - Information Security Stack AFAIK encryption password is generated on hardware info only and your PIN/password is not really decrypting the info on your phone. That means, if somebody gets physical access to the phone and turns it on, data will be already decrypted. Without entering PIN/Password from your side (In case it is enabled). Correct me, if I am wrong. How to encrypt password and store in Android sqlite? Mar 15, 2019 Android device encryption user interface flaw · blog.g3rt.nl Aug 18, 2015

Encrypting your Android device. 03/31/2020; 2 minutes to read; In this article. Device encryption protects your files and folders from unauthorized access if your device is lost or stolen. It makes the data on your device inaccessible and unreadable to people without a passcode.

Dec 03, 2019 Cryptfs Password - Apps on Google Play Apr 17, 2016 How to Encrypt Your Android Phone (and Why You Might Want to)

Is Android encryption secure? - Information Security Stack

Make Android Ask for PIN or Password at Boot Apr 02, 2016 7 Ways to Bypass Android's Secured Lock Screen « Android