I am using scrypt in making an Android app and it takes a very long time to compute the hash. This is how I call it:
String hash = Base64.encodeToString(SCrypt.scrypt("password".getBytes(), "salt".toString().getBytes(), 16384, 16, 2, 128), Base64.DEFAULT);
And this is how I declared the dependency in Gradle:
compile group: 'com.lambdaworks', name: 'scrypt', version: '1.4.0'
It takes almost a minute to compute the hash on my Nexus 6P and that is of course, very slow. Does anyone have any idea on how this can be made much faster? I am new to this and hence, clueless on why it is so slow and how to speed it up.