Skip to content

Commit bef7737

Browse files
committed
2 parents a47ef2a + b6a4128 commit bef7737

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

android/src/main/java/com/pedrouid/crypto/RCTSha.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void shaBase64(String data, String algorithm, Promise promise) throws Exc
8686
@ReactMethod
8787
public void shaUtf8(String data, String algorithm, Promise promise) throws Exception {
8888
try {
89-
byte[] digest = data.getBytes();
89+
byte[] digest = this.sha(data.getBytes(), algorithm);
9090
promise.resolve(Base64.encodeToString(digest, Base64.DEFAULT));
9191
} catch (Exception e) {
9292
promise.reject("-1", e.getMessage());

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-simple-crypto",
3-
"version": "0.2.10",
3+
"version": "0.2.11",
44
"description": "A simpler React-Native crypto library",
55
"main": "index.js",
66
"author": "Gary Button <gary.button.public@gmail.com>",

0 commit comments

Comments
 (0)