<@U04UQ68083H> for password similarity checks can ...
# ory-copilot
i
@chilly-king-10285 for password similarity checks can I define the distance of the Levenshtein algorithm?
b
A message from kapa.ai
Based on the provided knowledge sources, I don't have enough information to definitively answer whether you can define the distance of the Levenshtein algorithm for password similarity checks in Ory. The knowledge sources mention that Ory Identities implements a similarity check to prevent weak passwords, using the Levenshtein distance (also known as "Edit-Distance") between the identifier and the password. However, there's no specific information about customizing the Levenshtein distance threshold. What we do know is that: 1. The similarity check is enabled by default [Ory Password Policy](https://www.ory.sh/docs/concepts/password-policy#similarity-check). 2. You can toggle this feature on or off using the Ory CLI [Ory Password Policy](https://www.ory.sh/docs/concepts/password-policy#similarity-check). However, the sources don't provide information about customizing the Levenshtein distance itself. If you need more detailed information about customizing this feature, you might want to consult the Ory documentation or reach out to Ory support for clarification.