Skip to content

Commit

Permalink
perfumery 💄
Browse files Browse the repository at this point in the history
  • Loading branch information
ademar111190 committed Feb 7, 2015
1 parent e3f01f8 commit 7e648ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ Encryption encryption = Encryption.getDefault("YourKey", "YourSalt", yourByteIvA
```
Encryption encryption = new Encryption.Builder()
.setKeyLength(128)
.setKey("YourKey")
.setSalt("YourSalt")
.setIv(yourByteIvArray)
.setCharsetName("UTF8")
.setIterationCount(65536)
.setKey("YourKey")
.setDigestAlgorithm("SHA1")
.setSalt("YourSalt")
.setBase64Mode(Base64.DEFAULT)
.setAlgorithm("AES/CBC/PKCS5Padding")
.setSecureRandomAlgorithm("SHA1PRNG")
.setSecretKeyType("PBKDF2WithHmacSHA1")
.setIv(yourByteIvArray)
.build();
```
3º Encrypt your text
Expand Down

0 comments on commit 7e648ec

Please sign in to comment.