KEY_NAME
cryptographic transform or key lookup
What changes
- Input
- plaintext or ciphertext and a key, certificate or passphrase
- Output or change
- ciphertext, plaintext, hash, signature check, or key metadata
Syntax at a glance
KEY_NAME ( ciphertext | key_guid )
Work example
Resolve a key identifier or GUID to a visible key name.
Use synthetic data in an isolated database. Follow the existing key hierarchy and keep keys and plaintext out of output.
Check your work Confirm the lookup belongs to the expected database and never use the name as key material.
Open Microsoft Learn for full syntax, permissions, and details for your version.