I want to deploy smb password with ARD, or create a small script.
With the command
security I have the possibility to add a password in keychain without share the password.
security add-internet-password -a "user" -s "192.168.1.104" -w "password" -l "192.168.1.103" -D "network password" -r "smb " -T /System/Library/CoreServices/NetAuthAgent.app/Contents/MacOS/NetAuthSysAgent
But I like to encrypt the password as does if sharing wifi password (https://www.idownloadblog.com/2018/01/11/ios-11-how-to-share-wi-fi-passwords) and the user doesn't see it.
But in the man I don't see how to do it!