| e-CryptIt Engine Xojo Plugin |
|
EinhugurVault.SetPassword Method
Adds or updates password in the Vault.
shared SetPassword(
package
as String,
service
as String,
user
as String,
password
as String)
Parameters
- package
- Your application Bundle package id such as for example com.einhugur.test
- service
- Service name or description.
- user
- User name.
- password
- Password. (Password by nature is binary data so if your password has encoding then you will need to restore encoding when retrieving the password).
Remarks
This method can throw EinhugurVaultException.
try
#pragma BreakOnExceptions False
EinhugurVault.SetPassword("com.einhugur.test", "usage-example", "be", "somegoodPassword")
#pragma BreakOnExceptions true
catch ex as EinhugurVaultException
MessageBox ex.Message
end try
Where the password goes in the macOS Keychain:
Where the password goes in the Windows Credential manager:
Same code will work on Linux systems as well. Though I could not find any credential manage Appr to display them all on Linux, at least not on Raspberry Pi, if someone knows how the OS can show them there then by all means let me know.
See Also
EinhugurVault Class