....key is normally a string of bits used by a cryptographic algorithm to transform plain text into cipher text or vice versa....
https://www.di-mgt.com.au/cryptokeys.html
Suppose I have a Backend server which stores some public keys user submits using some FrontEnd page.
Presumably the user is going to copy paste the key in some HTML text-field to submit it to the server, which will encrypt the key and store it.
The question is : what is the recommended way of representing/submiting an encryption key?
Should it be converted in byte-array, HEX or Base64 ?
If so, who is responsible for this conversion ? Frontend ? User? Backend?
The scope is to avoid key alteration due different String encodings like UTF-8, UTF-16 etc.