In the NSA SDK there are two functions for encrypting and decrypting passwords:
nimbus.encrypt(string)
nimbus.decrypt(string)
But these do not seem to work in the NAS probe GUI for developing Lua scripts.
Release : 20.4
These functions have been added to the NAS Lua IDE as of NAS 9.39 which ships with UIM 20.4 CU8.