SystemCredential
✖
SystemCredential
Details

- Expressions can be stored with SystemCredential["keyname"]=expr.
- Expressions that can be stored in SystemCredential include:
-
"string" secret string such as password SystemCredentialData general-purpose key-value pairs SecuredAuthenticationKey credentials for an external service - Expressions stored under "keyname" can be removed with Unset[SystemCredential["keyname"]].
- SystemCredential uses the operating system's keychain, if possible. If no secure storage is available, it stores its secrets in an encrypted local file.
- Under Windows and macOS, the data is by default stored in the default keychain provided.
- Under Linux, one of the supported wallet systems can be used.
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Store a secret string under the key name "mykey":

https://wolfram.com/xid/0btmrb8tw76y-l60bmy
Read the string from secure storage:

https://wolfram.com/xid/0btmrb8tw76y-4gxurd


https://wolfram.com/xid/0btmrb8tw76y-idymwv
Securely store an authentication key:

https://wolfram.com/xid/0btmrb8tw76y-sz0f8p
Securely store a record of key-value pairs, with the "Password" field being encrypted:

https://wolfram.com/xid/0btmrb8tw76y-l09fgp
Retrieve the stored information:

https://wolfram.com/xid/0btmrb8tw76y-5wggox

Applications (1)Sample problems that can be solved with this function
Create a SecuredAuthenticationKey with credentials from an external service, the "AuthorizationCode" OAuth 2.0 workflow:

https://wolfram.com/xid/0btmrb8tw76y-6msd58

Store the key in secure storage:

https://wolfram.com/xid/0btmrb8tw76y-elu940
Use the stored key to send signed requests to the service:

https://wolfram.com/xid/0btmrb8tw76y-h2eej

Properties & Relations (3)Properties of the function, and connections to other functions
List all names of securely stored data:

https://wolfram.com/xid/0btmrb8tw76y-8hx0u1

Remove stored data for a given key name:

https://wolfram.com/xid/0btmrb8tw76y-n5ovha

https://wolfram.com/xid/0btmrb8tw76y-pumn82
Use SystemCredentialKey"keyname" to securely store authentication dialog fields between sessions:

https://wolfram.com/xid/0btmrb8tw76y-hbf6b

The data is remembered in secure storage under the given name:

https://wolfram.com/xid/0btmrb8tw76y-ohahtt

Possible Issues (1)Common pitfalls and unexpected behavior
Numbers are not accepted by SystemCredential:

https://wolfram.com/xid/0btmrb8tw76y-fz7b0



https://wolfram.com/xid/0btmrb8tw76y-ghpxkf


Wolfram Research (2020), SystemCredential, Wolfram Language function, https://reference.wolfram.com/language/ref/SystemCredential.html.
Text
Wolfram Research (2020), SystemCredential, Wolfram Language function, https://reference.wolfram.com/language/ref/SystemCredential.html.
Wolfram Research (2020), SystemCredential, Wolfram Language function, https://reference.wolfram.com/language/ref/SystemCredential.html.
CMS
Wolfram Language. 2020. "SystemCredential." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SystemCredential.html.
Wolfram Language. 2020. "SystemCredential." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SystemCredential.html.
APA
Wolfram Language. (2020). SystemCredential. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SystemCredential.html
Wolfram Language. (2020). SystemCredential. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SystemCredential.html
BibTeX
@misc{reference.wolfram_2025_systemcredential, author="Wolfram Research", title="{SystemCredential}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/SystemCredential.html}", note=[Accessed: 25-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_systemcredential, organization={Wolfram Research}, title={SystemCredential}, year={2020}, url={https://reference.wolfram.com/language/ref/SystemCredential.html}, note=[Accessed: 25-March-2025
]}