[TASK] Use DOM API for field access in RSA encryption