Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hortinstein committed Mar 3, 2023
2 parents 0340e49 + 888d6cf commit 681eea2
Show file tree
Hide file tree
Showing 3 changed files with 54,835 additions and 13,285 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ let (b_secretKey, b_publicKey) = generateKeyPair()
let plaintext = cast[seq[byte]]("hello this is a test string")
let encObj = enc(a_secretKey,b_publicKey,plaintext)
let wrapped = wrap(encObj)
let unwrapped = unwrap(wrapped)
let wrapped = wrap(encObj) //serialize and b64
let unwrapped = unwrap(wrapped) //unb64 and deserialize
let ptext = dec(b_secretKey,unwrapped)
doAssert(plaintext == ptext)
```

#### Typescript

Below is a simple nim example of encypting, serializing and base64ing
Below is a simple typescript example of encypting, serializing and base64ing

``` typescript
import {
Expand Down
Loading

0 comments on commit 681eea2

Please sign in to comment.