I am trying to encrypt loginDTO to base64 with a key in angular 5 application . I know we have blot() which accepts a string and converts to base64 but not sure how to do it here.
Const credential =
{ username : 'abc123'
password : '12345'
};
Const Key = 'some key'
Could someone help me to convert this object to byte array and then encrypt to base64 with key.
Note- I cannot use any external library like cryptoJS Since the same encryption method is written for mobile app in xamarin and backend is same for web and mobile c#.