What is the role of Presentation layer in OSI model
Abstract Syntax Notation 1 (ASN.1), for instance, is an example of a specification that operates at the presentation layer. A good example of how the presentation layer handles data formatting is how text is formatted.
It is possible that some applications may format text using American Standard Code for Information Interchange (ASCII), while others may use Extended Binary Coded Decimal Interchange Code (EBCDIC). Presentation layer is responsible for formatting text (or other types of data, such as multimedia or graphics files) in a way that is compatible with the platforms that are communicating with one another. As an example, consider that you are sending sensitive information over a network (for instance, your credit card number or bank password). A malicious user could obtain sensitive information from your transmission if they intercepted it. Generally speaking, encryption provides additional security for such transmissions by scrambling (encrypting) the data in a way that if it were intercepted, a third party would not be able to decode (unscramble) it. A recipient may, however, be able to decrypt the transmission.