diff --git a/website/pages/docs/secrets/transform/index.mdx b/website/pages/docs/secrets/transform/index.mdx index b6431a37f471..7523ff34d773 100644 --- a/website/pages/docs/secrets/transform/index.mdx +++ b/website/pages/docs/secrets/transform/index.mdx @@ -179,12 +179,12 @@ alphabet the input size does not leave the input guessable by brute force. Given an alphabet of length A, an input length L is valid if: * L >= 2, -* A^L >= 1,000,000 -* and L <= 2 * floor(logA(2^96)). +* AL >= 1,000,000 +* and L <= 2 * floor(logA(296)). As a concrete example, for handling credit card numbers, A is 10, L is 16, so valid input lengths would be between 6 and 56 characters. This is because -10^6=1,000,000 (already greater than 2), and 2 * floor(log10(2^96)) = 56. +106=1,000,000 (already greater than 2), and 2 * floor(log10(296)) = 56. Of course, in the case of credit card numbers valid input would always be 16 decimal digits.