java - Generate multiple Unique IDs using algorithm with single input string/pattern -


is there algorithm or api generate multiple unique ids single input string/pattern, if input of resulted ids , should match pattern/string(ie, validate resulted ids against input pattern/string)

any idea?

you use insecure hash function. "single pattern" hash value. multiple ids input gave hash value when passed insecure hash function. hash function needs insecure can drive backwards generate new ids.

for example, hash xoring bytes together. if single pattern 0x2a, string xors value can id.

you need judge how insecure hash function needs depending on needs. there plenty of cryptographically insecure hash functions, of varying degrees of reversibility, use.


Comments