[Galaxy Note5 Android Development] Mr.LOVER:
Bro I'm afraid that you are very much mistaken about encryption.

when your device is encrypted. nobody can access your data from TWRP. it is only if someone hold your device unlocked then he/she can steal your data. or if your phone is hacked by someone then he/she can steal your data.

1. Stock ROMs

in stock ROMs when you encrypt, nobody can even mount data in TWRP. all he can do is to format data, and use your phone. this way your data is gone and nobody can steal it.

2. AOSP ROMs

in AOSP ROMs like Cyanogenmod, encryption method is different. it can be mounted in TWRP but it will only be mounted if you provide the encryption key in TWRP. if you don't know the key then TWRP can't mount it. and all you can do is to wipe data like in stock ROMs.

the difference i noted in Stock and AOSP is that stock encryption cannot be mounted at all but AOSP encryption can be mounted if you know encryption key(password). and in stock based roms you can not encrypt device if your are rooted but in aosp mostly you can have a root and still encrypt device(not sure about every aosp rom but i always used cyanogenmod which is no more i think, also tried it on couple of other aosp roms and it worked).

and your data is always secure from physical access.

and then ofcourse encryption is not enough. encryption can save you from physical attacks only. but when you are using your phone you can be attacked by malwares or other type of viruses to steal your data. for them you need firewalls and other security like not to install any apps from unknown/untrustworthy sources and use open source apps always etc and others which i'm not in a mood to discuss everything here. just giving an intro to security :)

anyways my point here is only how important encryption is. those people take photos of many things that they don't want anyone to steal or see, or corporate companies documents and other files. videos of personal nature and your sms, contacts. browser profiles with saved password. and many things i can talk about but the post will become really very lengthy.

so all above things can be recovered from phone if you sell your phone or it is stolen. that why encryption is serious.

and i always look for AOSP roms because they allow encryption with root. but because note 5 does not have any stable aosp rom ( i tried lineageOS 14.1 and it does encrypt device with root but it's not really stable to use a daily driver) thats why i felt a need to have a stock based rom that can support encryption with root. but all tricks on google failed on my device may be because it latest bootloader/firmware? but i will still be searching until i found a way or until a stable aosp rom comes.

i really wanted my post to be short but the nature of this subject is very lengthy. so forgive me for writing this much, but i meant it so that you can learn it. because devs should know about security so that they can also implement some security in roms.

BTW i really respect you as you are contributing in our device forum. i saw your other ROM and may be a kernel i downloaded :) . haha but i'm not really interested in so many features just a stable rom or kernel that can let me encrypt my stock rom with root.

Edit:

one more thing. if you don't encrypt your device, and if it is stolen. then they can simply flash a script to unlock your device from recovery ( i saw it on note2 forums or may be it was on LG optimus 4x hd forums that can unlock your device). and then they can steal all data. all accounts are opened in your device and whatsapp, sms, contacts, files, photos are there for him. but if device is encrypted they can't flash from recovery anything until they mount encrypted partitions which can't be done without password and breaking the password is a hell of a thing to do (only authorities can do that with super computers).