Is there some algorithm to somehow encrypt characters into a single value for later comparison with other character sequence with the same length?
no duplicates allowed: f.e. [a,b,c] = X, where X is the result of some operation to make those characters unique.

Adding up all ascii values doesn't work: [d = 100, e = 101] and [c = 99, f = 102]. Obviously both add up to 201 with different letters.

Is there an algorithm with some operations that would make that value unique?

Thanks!
marbles