macOS / binaries /

security

/usr/bin/security
Command line interface to keychains and security framework

A simple command line interface which lets you administer keychains, manipulate keys and certificates, and do just about anything the Security framework is capable of from the command line. By default security will execute the command supplied and report if anything went wrong.

source: man
/System/Library/Frameworks/Security.framework/Versions/A/Security
Secure the data your app manages, and control access to your app

Use the Security framework to protect information, establish trust, and control access to software. Broadly, security services support these goals: establish a user's identity (authentication) and then selectively grant access to resources (authorization); secure data, both on disk and in motion across a network connection; ensure the validity of code to be executed for a particular purpose.