Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Rails3.0で入力文字列がMd5ハッシュの形式であるかどうかを確認するにはどうすればよいですか?
すべての 32 桁の 16 進数 (つまり、文字 af と数字 0 ~ 9 のみで構成される) を md5 ハッシュと見なします。
md5 のコドメインが 32 桁の 16 進数のスペース全体であるかどうかはわかりませんが、ハッシュは理想的には条件を満たす必要があるため、そうであると想定できます。