We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72f39e4 commit d2da6d2Copy full SHA for d2da6d2
1 file changed
README.md
@@ -35,6 +35,13 @@ Now you can use bare `encrypt/1` and `decrypt/1`:
35
|> Cipher.decrypt # "secret"
36
```
37
38
+### Decryption errors
39
+
40
+When you decrypt non-valid strings you can get two kinds of errors:
41
42
+* `{:error, "Could not decode string 'yourstring'"}` if your string was tampered or wrongly transferred.
43
+* `{:error, "Could not decrypt string 'yourstring'"}` if your string was encrypted using different keys. Maybe some edge cases of tampering too.
44
45
## Cipher/Parse JSON
46
47
`cipher/1` and `parse/1`. Just as `encrypt/1` and `decrypt/1` but for JSON.
0 commit comments