Use pkexec as a GUI alternative for sudo.
A krusader's custom action as an examle:
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /bin/bash -c "cryptsetup open --allow-discards /dev/sdb7 data -d /key && mount /dev/mapper/data /media/user/data"; %aGoto("/media/user")%
A krusader's custom action as an examle:
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /bin/bash -c "cryptsetup open --allow-discards /dev/sdb7 data -d /key && mount /dev/mapper/data /media/user/data"; %aGoto("/media/user")%