KDE Context Service Menu
by Scott, Revised on April 28, 2014 (Linux)
Add En/Decryption to Context Menu
Found the below code for adding AES encrypt and decrypt to the Dolphin Context Menu. The information came from this nice blog (info also at the KDE TechBase). The file is named aesProtect.desktop (used to be called aes.desktop, but upon upgrade to Kubuntu 14.04, that particular name would not work, weird) and is placed into the ~/.kde4/share/kde4/services/ServiceMenus/ directory. The "aescypt" program needs to be on the system (download). There does not seem to be a Debian package, but the compile is easy and quick. Just run make in src directory, then make install or manually move executable into directory of your choice.
[Desktop Entry] Type=Service X-KDE-ServiceTypes=KonqPopupMenu/Plugin MimeType=all/all Icon=kgpg Actions=encrypt;decrypt; X-KDE-Submenu=AES [Desktop Action encrypt] Name=Encrypt Icon=kgpg Exec=/opt/aescrypt/bin/aescrypt -e -p `kdialog --password "Insert desired password:" --title "AES Encryption"` "%f" [Desktop Action decrypt] Name=Decrypt Icon=kgpg Exec=/opt/aescrypt/bin/aescrypt -d -p `kdialog --password "Provide required password:" --title "AES Decryption"` "%f"