i have encoder but it was project to encode passwords based on random generated keys here is how it looks:
[ 1:43:15,28] GENERATING KEY...
[ 1:43:17,49] DONE...
[ 1:43:17,49] KEY: alED2UCO4kSfmTrypQ678g5W0Bh1ZiNx9v3J
[ 1:43:17,49] ENTER PASSWORD TO ENCODE
[ 1:43:17,49] [PASSWORD]: computerhope
[ 1:43:21,78] GENARATED PASSWORD:
[ 1:43:21,78] f91JBQkT59Jk
[ 1:43:21,79] GETING KEY...
[ 1:43:21,79] DONE...
[ 1:43:21,79] KEY: alED2UCO4kSfmTrypQ678g5W0Bh1ZiNx9v3J
[ 1:43:21,81] ENTER PASSWORD TO DECODE
[ 1:43:21,81] [PASSWORD]: f91jbqkt59jk
[ 1:43:36,38] DECODED PASSWORD:
[ 1:43:36,38] computerhope
its not perfect but it works
i will try to make what you want but one question:
you want just 'a' and 'd' , or whole alphabet? it would be easier to do sth like this:
input:
a=10
d=45
o=11
n=44
addon
output:
1045451144