Closed ThisIsMissEm closed 9 years ago
Currently the code seems to be using a method of "try actually using this cipher or hash and if it throws, report it as an unavailable option".
It seems that using Crypto#getCiphers and Crypto#getHashes would be the better route for doing this.
Crypto#getCiphers
Crypto#getHashes
Is there a reason to not use those?
Uh, perhaps ignore this, I kind of missed the logic that was actually been being used.
Looks like it's for backwards compatibility.
Currently the code seems to be using a method of "try actually using this cipher or hash and if it throws, report it as an unavailable option".
It seems that using
Crypto#getCiphers
andCrypto#getHashes
would be the better route for doing this.Is there a reason to not use those?