Code can probably be borrowed from crypt.py at https://weechat.org/scripts/source/crypt.py.html/ for adding a status item to the buffer indicating encryption status.