---
title: "Discussion on \"Simple encryption and decryption with secret in TypeScript\" | Hashnode"
description: "Discussion on \"Simple encryption and decryption with secret in TypeScript\". In this article I will show you how to easier using built-in nodejs module crypto.\nFor this code we need SECRET_KEY and SECRET_IV environments.\n\nYou can write everything in this variables but if you change values after encrypted data, you decryption ..."
url: "https://hashnode.com/posts/simple-encryption-and-decryption-with-secret-in-typescript/60d5cdbade92ef110afdc33d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Simple encryption and decryption with secret in TypeScript](https://blog.tyszko.dev/simple-encryption-and-decryption-with-secret-in-typescript?utm_source=hashnode&utm_medium=feed)

In this article I will show you how to easier using built-in nodejs module crypto. For this code we need SECRET\_KEY and SECRET\_IV environments. You can write everything in this variables but if you change values after encrypted data, you decryption ...

Jun 25, 2021 · 1 min read · blog.tyszko.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Patrick](https://hashnode.com/@zgaduj)

@zgaduj · Warsaw

  
[View profile](https://hashnode.com/@zgaduj)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
