String encryption - generate unique pattern like Spotify codes
问题 Yesterday I've read the question Algorithm to create costum Template/Code from String. Because the question was not formulated that well it was downvoted just instantly. However, the question itself was in my opinion not that bad, so I decided to ask a hopefully better version of this question again. Ok, Im wondering how's the string encryption e.g. of the new Spotify codes is working. See the image below: I would be super interested in the extent to which it is possible to implement