{"id":21241254,"url":"https://github.com/icyjoseph/encrypt-with-deno","last_synced_at":"2026-05-10T00:43:54.744Z","repository":{"id":37738788,"uuid":"267317757","full_name":"icyJoseph/encrypt-with-deno","owner":"icyJoseph","description":"Encrypt/Decrypt files using Deno runtime with WASM","archived":false,"fork":false,"pushed_at":"2020-05-27T12:52:21.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T19:41:47.565Z","etag":null,"topics":["aes128","decrypt","deno","encrypt","wasm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icyJoseph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-27T12:47:38.000Z","updated_at":"2022-06-22T08:49:16.000Z","dependencies_parsed_at":"2022-08-24T16:02:16.744Z","dependency_job_id":null,"html_url":"https://github.com/icyJoseph/encrypt-with-deno","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyJoseph%2Fencrypt-with-deno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyJoseph%2Fencrypt-with-deno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyJoseph%2Fencrypt-with-deno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icyJoseph%2Fencrypt-with-deno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icyJoseph","download_url":"https://codeload.github.com/icyJoseph/encrypt-with-deno/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681005,"owners_count":20330155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aes128","decrypt","deno","encrypt","wasm"],"created_at":"2024-11-21T00:55:06.281Z","updated_at":"2026-05-10T00:43:54.713Z","avatar_url":"https://github.com/icyJoseph.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Encrypt and Decrypt files under Deno runtime\n\nUsing the Deno runtime to encrypt, compress, and recover a file.\n\n## Credit\n\n- This package uses `wasm-flate.wasm` built from [this repository](https://github.com/drbh/wasm-flate) to compress/decompress files.\n- The `wasm-flate` module is a thin wasm wrapper around the [flate2](https://docs.rs/crate/flate2/1.0.14) crate.\n\n- The aes128 encryption/decryption is done using `wasm-aes-soft.asm` built from [this repository](https://github.com/icyJoseph/wasm-aes-soft).\n- The `wasm-aes-soft` module is a thin wasm wrapper around the [aes-soft](https://docs.rs/crate/aes-soft/0.3.3) crate.\n\n## Encrypt a file\n\n```\ndeno run --allow-read --allow-write encrypt.ts sample.txt\n```\n\nRunning this will create two files:\n\n- `sample.enc.txt`\n- `sample.key`\n\n## Decrypt a file\n\nAt this point, because padding is used while decrypting, for text files one has to filter out the null character.\n\n```\n deno run --allow-read --allow-write decrypt.ts sample.enc.txt sample.key true\n```\n\nFor any other file type the last flag can be ignored.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficyjoseph%2Fencrypt-with-deno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficyjoseph%2Fencrypt-with-deno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficyjoseph%2Fencrypt-with-deno/lists"}