Encryption is related to cryptography in which layer
Encryption is related to cryptography in application layer.
Cryptographyreferred almost exclusively to encryption, which is the process of converting ordinary information (called plain text) into unintelligible text (called cipher text). A cipher is a pair of algorithms that create the encryption and the reversing decryption.
Encryptionis also known as private-key cryptography, and is called so because the key used to encrypt and decrypt the message must remain secure, because anyone with access to it can decrypt the data.
Application layer:-
An application layer is an abstraction layer that specifies the shared communications protocols and interface methods used by hosts in a communications network. The application layer abstraction is used in both of the standard models of computer networking: the internet protocol suite (TCP/IP) and the OSI model.