From b2f6829b330b2885de4c8ecc0c76a184c3fa6393 Mon Sep 17 00:00:00 2001 From: "Visal .In" Date: Wed, 19 Aug 2020 18:42:09 +0700 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1e55eb3..b32a190 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,22 @@ A pure Javascript/Typescript cryptography implementation for Deno. We will try t ### [AES](https://github.com/invisal/god_crypto/wiki/AES) | [RSA](https://github.com/invisal/god_crypto/wiki/RSA) | [HMAC](https://github.com/invisal/god_crypto/wiki/HMAC) | [TOTP](https://github.com/invisal/god_crypto/wiki/TOTP) -
-Click here for complete document: +Click here for complete document: [Complete Documents](https://github.com/invisal/god_crypto/wiki) -- [Complete Documents](https://github.com/invisal/god_crypto/wiki) +## Modules -
+You can choose to include the whole `god_crypto` implementation or just include module that you need. + +``` +// Load everything +import { AES, RSA, TOTP, hmac, encode } from "https://deno.land/x/god_crypto/mod.ts"; + +// Load what you need +import { AES } from "https://deno.land/x/god_crypto/aes.ts"; +import { RSA } from "https://deno.land/x/god_crypto/rsa.ts"; +import { TOTP } from "https://deno.land/x/god_crypto/otp.ts"; +import { hmac } from "https://deno.land/x/god_crypto/hmac.ts"; +``` ---