Se ho capito bene vuoi portare la keyascii dei caratteri che è in base 10 a base 64 giusto?