문제

Instead of comparing a string, Is there any inbuilt class or method in java for validation, encryption and recovery of password . Or else is there any usable class library available for such a purposes. Thank you!!

도움이 되었습니까?

해결책

Yes, and no. It is common to use a MessageDigest to accomplish this, by applying a one way cryptographic hash function to the user's password (e.g. one of SHA-256, SHA-384, and SHA-512 [and there are others]) and a SALT to prevent rainbow table based attacks. All of which can certainly be accomplished with native "inbuilt" Java.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top