Base64 data encryption with key

Hi, I want to encrypt one reference variable or one string or an array by using a key in Base64 for ionic v1, So please help me.

Base64 is for encoding and not for encryption.

Ohoo… I dont Know. Thanks For your mesage. What is Encoding and encryption…when we will use

Encoding to used to change one format of data to another, for example, changing a image which is a binary file to base64. Usually used when we want to pass data over a network.

Encryption is used to secure data only to be read by authenticated/authorized users. This helps maintain data integrity between 2 parties. For example, the communication between sites which is served over https. It uses asymmetric encryption and avoids man-in-the-middle attack.

Thankyou. Vivek for you information

1 Like