GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - attla/cripta: 🧛 A layer of encryption a little too judicious

BranchesTags
Open more actions menu

Latest commit

 

History

26 Commits
26 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
tests
tests
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
global.d.ts
global.d.ts
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.test.json
tsconfig.test.json
 
 
tsup.config.ts
tsup.config.ts
 
 

Repository files navigation

Criptλ
Start new PR in StackBlitz Codeflownpm package


  • Installation
  • Usage
  • License

Install

bun i cripta

Usage

import { config, encode, decode } from 'cripta'

const opts = await config({ key: 'your-secret-key' })

const encoded = await encode('hic sunt dracones', opts)
console.log('Encoded: ', encoded)
console.log('Decoded: ', await decode(encoded, opts))

The Cripta can encrypt all primitive types: array, object, string, number, bigint, boolean, Symbol, undefined and null.

See an example of object encryption:

// encoding
const encoded = await encode({
  name: 'John Doe',
  email: '[email protected]'
}, opts)

console.log('Encoded object: ', encoded)

// retrieve the object from encoded value
const decoded = await decode(encoded, opts)
console.log('Decoded object: ', decoded)

License

This package is licensed under the MIT license © HUB

About

🧛 A layer of encryption a little too judicious

Topics

awsaws-lambdadecriptionencriptionencryptionhashllrtpincrypserverless

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.