MCPcopy Index your code
hub / github.com/bcrypt-ruby/bcrypt-ruby / hashpw

Method hashpw

ext/jruby/bcrypt_jruby/BCrypt.java:732–742  ·  view source on GitHub ↗

Hash a password using the OpenBSD bcrypt scheme @param password the password to hash @param salt the salt to hash with (perhaps generated using BCrypt.gensalt) @return the hashed password

(String password, String salt)

Source from the content-addressed store, hash-verified

730 * @return the hashed password
731 */
732 public static String hashpw(String password, String salt) {
733 byte passwordb[];
734
735 try {
736 passwordb = password.getBytes("UTF-8");
737 } catch (UnsupportedEncodingException uee) {
738 throw new AssertionError("UTF-8 is not supported");
739 }
740
741 return hashpw(passwordb, salt);
742 }
743
744 /**
745 * Hash a password using the OpenBSD bcrypt scheme

Callers 6

checkpwMethod · 0.95
testHashpwMethod · 0.95
testGensaltIntMethod · 0.95
testGensaltMethod · 0.95
hash_secretMethod · 0.80

Calls 3

decode_base64Method · 0.95
crypt_rawMethod · 0.95
encode_base64Method · 0.95

Tested by 4

testHashpwMethod · 0.76
testGensaltIntMethod · 0.76
testGensaltMethod · 0.76