How to encrypt some string in Angular JS which is not going to visible on client side?

I have one AWS KEY in my angular js file to upload file to AWS s3 but somehow someone will saw my AWS Key and secret key and it was hacked.
so now i want to do some encryption for that string so it is not visible on client side on source file or anywhere else.

Thanks in advance.

i’ve tried atob() and btoa() but still i dont want to store my original kwy in any variable.

Source: New feed
Source Url How to encrypt some string in Angular JS which is not going to visible on client side?